:root {
      --bg: #f4f5f7;
      --surface: #ffffff;
      --primary: #18073e;
      --accent: #ff8800;
      --accent-light: #fff4e6;
      --text: #1a1a2e;
      --text-muted: #64657a;
      --border: #e2e3ea;
      --sidebar-w: 260px;
      --header-h: 60px;
}

*,
*::before,
*::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
}
html {
      scroll-behavior: smooth;
}

body {
      font-family: 'Inter', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.75;
      font-size: 15px;
}

/* HEADER */
header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      height: var(--header-h);
      background: var(--primary);
      display: flex;
      align-items: center;
      padding: 0 28px;
      gap: 12px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.logo-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
}
.logo-icon {
      width: 32px;
      height: 32px;
      border-radius: 7px;
      background: var(--accent);
      display: grid;
      place-items: center;
}
.logo-icon svg {
      width: 18px;
      height: 18px;
}
header .brand {
      font-size: 1rem;
      font-weight: 700;
      color: #fff;
}
header .brand a {
      color: #fff;
      text-decoration: none;
}
header .brand a:hover {
      text-decoration: underline;
}
.header-pill {
      margin-left: auto;
      background: rgba(255, 136, 0, 0.2);
      color: #ffb04d;
      border: 1px solid rgba(255, 136, 0, 0.35);
      font-size: 0.7rem;
      font-weight: 600;
      padding: 3px 11px;
      border-radius: 20px;
      letter-spacing: 0.6px;
      text-transform: uppercase;
}

/* LAYOUT */
.layout {
      display: flex;
      padding-top: var(--header-h);
      min-height: 100vh;
}

/* SIDEBAR */
aside {
      width: var(--sidebar-w);
      flex-shrink: 0;
      position: sticky;
      top: var(--header-h);
      height: calc(100vh - var(--header-h));
      overflow-y: auto;
      background: var(--surface);
      border-right: 1px solid var(--border);
      padding: 24px 0 40px;
}
aside::-webkit-scrollbar {
      width: 3px;
}
aside::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 3px;
}

.nav-label {
      font-size: 0.65rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.3px;
      color: var(--text-muted);
      padding: 0 20px 10px;
}
.nav-list {
      list-style: none;
}
.nav-list a {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 8px 20px;
      text-decoration: none;
      color: var(--text-muted);
      font-size: 0.9rem;
      font-weight: 400;
      border-left: 3px solid transparent;
      transition: all 0.15s;
      line-height: 1.35;
}
.nav-list a:hover,
.nav-list a.active {
      color: var(--primary);
      background: #f0eef8;
      border-left-color: var(--accent);
      font-weight: 600;
}
.nav-num {
      width: 30px;
      height: 30px;
      border-radius: 4px;
      background: var(--bg);
      border: 1px solid var(--border);
      font-size: 0.9rem;
      font-weight: 700;
      display: grid;
      place-items: center;
      flex-shrink: 0;
      color: var(--text-muted);
      transition: all 0.15s;
}
.nav-list a.active .nav-num,
.nav-list a:hover .nav-num {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
}
.nav-sep {
      height: 1px;
      background: var(--border);
      margin: 10px 20px;
}

/* MAIN */
main {
      flex: 1;
      max-width: calc(100% - 260px);
      padding: 44px 52px 80px;
}

/* INTRO */
.doc-intro {
      background: var(--primary);
      color: #fff;
      border-radius: 12px;
      padding: 32px 36px;
      margin-bottom: 44px;
      position: relative;
      overflow: hidden;
}
.doc-intro::after {
      content: '';
      position: absolute;
      right: -30px;
      top: -30px;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: rgba(255, 136, 0, 0.12);
}
.doc-intro .tag {
      font-size: 0.68rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      background: rgba(255, 136, 0, 0.25);
      color: #ffb04d;
      padding: 4px 10px;
      border-radius: 4px;
      display: inline-block;
      margin-bottom: 14px;
}
.doc-intro h2 {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 8px;
      line-height: 1.25;
}
.doc-intro p {
      font-size: 0.88rem;
      color: rgba(255, 255, 255, 0.75);
      max-width: 520px;
      line-height: 1.6;
}
.doc-meta {
      display: flex;
      gap: 20px;
      margin-top: 18px;
      flex-wrap: wrap;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding-top: 16px;
}
.doc-meta span {
      font-size: 0.75rem;
      color: rgba(255, 255, 255, 0.55);
}
.doc-meta strong {
      color: rgba(255, 255, 255, 0.9);
}

/* LGPD RIGHTS GRID */
.rights-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 12px;
      margin: 16px 0;
}
.right-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px 16px;
      border-top: 3px solid var(--accent);
}
.right-card strong {
      display: block;
      font-size: 0.82rem;
      color: var(--primary);
      margin-bottom: 4px;
}
.right-card span {
      font-size: 0.78rem;
      color: var(--text-muted);
      line-height: 1.4;
}

/* DATA TABLE */
.data-table {
      width: 100%;
      border-collapse: collapse;
      margin: 16px 0;
      font-size: 0.86rem;
}
.data-table th {
      background: var(--primary);
      color: #fff;
      padding: 10px 14px;
      text-align: left;
      font-weight: 600;
      font-size: 0.78rem;
      letter-spacing: 0.3px;
}
.data-table th:first-child {
      border-radius: 8px 0 0 0;
}
.data-table th:last-child {
      border-radius: 0 8px 0 0;
}
.data-table td {
      padding: 10px 14px;
      border-bottom: 1px solid var(--border);
      color: #2e2f45;
      vertical-align: top;
}
.data-table tr:nth-child(even) td {
      background: var(--bg);
}

/* SECTIONS */
section {
      margin-bottom: 48px;
      scroll-margin-top: calc(var(--header-h) + 20px);
}
#intro {
      scroll-margin-top: calc(var(--header-h) + 20px);
}

.section-header {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 18px;
      padding-bottom: 14px;
      border-bottom: 2px solid var(--border);
}
.section-num {
      flex-shrink: 0;
      width: 34px;
      height: 34px;
      border-radius: 8px;
      background: var(--accent);
      color: #fff;
      font-size: 0.75rem;
      font-weight: 700;
      display: grid;
      place-items: center;
      margin-top: 2px;
}
section h2 {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--primary);
      line-height: 1.3;
}
section h3 {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--primary);
      margin: 20px 0 8px;
      padding-left: 10px;
      border-left: 3px solid var(--accent);
}

.prose p {
      margin-bottom: 16px;
      color: #2e2f45;
      text-align: justify;
}
.prose p:last-child {
      margin-bottom: 0;
}
.prose ul {
      list-style: none;
      margin: 10px 0 14px;
}
.prose ul li {
      padding: 7px 0 7px 20px;
      position: relative;
      border-bottom: 1px solid var(--bg);
      font-size: 0.92rem;
      color: #2e2f45;
}
.prose ul li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 16px;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
}

.callout {
      background: #f0eef8;
      border-left: 3px solid var(--primary);
      border-radius: 0 8px 8px 0;
      padding: 14px 18px;
      margin: 16px 0;
      font-size: 0.88rem;
      color: var(--primary);
      font-weight: 500;
}
.callout.warn {
      background: var(--accent-light);
      border-color: var(--accent);
      color: #7a4200;
}
.callout.info {
      background: #eef4ff;
      border-color: #3b6fd4;
      color: #1a3a7a;
}
.callout.green {
      background: #edf7f2;
      border-color: #2a7a52;
      color: #1a4d33;
}

hr.div {
      border: none;
      border-top: 1px solid var(--border);
      margin: 4px 0 40px;
}

/* FOOTER */
footer {
      max-width: 800px;
      padding: 28px 52px 48px;
      border-top: 1px solid var(--border);
      margin-left: var(--sidebar-w);
}
footer p {
      font-size: 0.8rem;
      color: var(--text-muted);
      line-height: 1.6;
}
footer strong {
      color: var(--text);
}

@media (max-width: 820px) {
      aside {
            display: none;
      }
      main {
            max-width: 100%;
            padding: 28px 20px 60px;
      }
      footer {
            padding: 20px 20px 40px;
            margin-left: 0;
      }
      .rights-grid {
            grid-template-columns: 1fr 1fr;
      }
}

@media (max-width: 600px) {
      .data-table thead {
            display: none;
      }

      .data-table,
      .data-table tbody,
      .data-table tr,
      .data-table td {
            display: block;
            width: 100%;
      }

      .data-table tr {
            margin-bottom: 16px;
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
      }

      .data-table td {
            padding: 10px 14px;
            border-bottom: 1px solid var(--border);
            position: relative;
            padding-left: 45%;
            min-height: 44px;
      }

      .data-table td:last-child {
            border-bottom: none;
      }

      .data-table td::before {
            content: attr(data-label);
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 42%;
            padding: 10px 12px;
            background: var(--primary);
            color: #fff;
            font-size: 0.72rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            line-height: 1.3;
      }
}
