:root {
      --navy:   #0f1e3c;
      --gold:   #e8a820;
      --gold-lt:#f5c842;
      --white:  #ffffff;
      --off:    #f5f4f0;
      --muted:  #6b7280;
      --border: #e2e5ec;
      --radius: 14px;
      --shadow: 0 8px 32px rgba(15,30,60,.10);
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { font-family: 'DM Sans', sans-serif; color: var(--navy); background: var(--white); }
    a { text-decoration: none; color: inherit; }
    img { display: block; max-width: 100%; }

    /* ════ HEADER ════ */
    header {
      position: sticky; top: 0; z-index: 100;
      background: linear-gradient(90deg, var(--navy) 0%, #1a3260 100%);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 48px; height: 68px;
      box-shadow: 0 2px 16px rgba(0,0,0,.25);
    }
    .logo { display: flex; align-items: center; gap: 10px; max-width: 12em; margin-top: 5px; }
    
    nav { display: flex; align-items: center; gap: 8px; }
    nav a {
      font-size: .9rem; font-weight: 500;
      color: rgba(255,255,255,.78); padding: 6px 14px; border-radius: 6px;
      transition: color .2s, background .2s;
    }
    nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
    .btn-portal {
      margin-left: 16px; background: var(--gold); color: var(--navy) !important;
      font-weight: 700 !important; padding: 8px 20px !important;
      border-radius: 8px !important; font-size: .88rem !important;
    }
    .btn-portal:hover { background: var(--gold-lt) !important; }

    /* ── Hamburger ── */
    .hamburger {
      display: none; flex-direction: column; justify-content: center; gap: 5px;
      width: 40px; height: 40px; cursor: pointer; background: none; border: none; padding: 4px;
    }
    .hamburger span {
      display: block; width: 24px; height: 2px; background: var(--white);
      border-radius: 2px; transition: transform .3s, opacity .3s;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-drawer {
      display: none; position: fixed; top: 68px; left: 0; right: 0;
      background: linear-gradient(180deg, #1a3260 0%, var(--navy) 100%);
      padding: 16px 24px 24px; box-shadow: 0 8px 24px rgba(0,0,0,.3);
      z-index: 99; flex-direction: column; gap: 4px;
    }
    .nav-drawer.open { display: flex; }
    .nav-drawer a {
      font-size: 1rem; font-weight: 500; color: rgba(255,255,255,.82);
      padding: 12px 16px; border-radius: 8px; transition: background .2s, color .2s;
    }
    .nav-drawer a:hover { background: rgba(255,255,255,.08); color: var(--white); }
    .nav-drawer .btn-portal { margin-left: 0 !important; margin-top: 8px !important; text-align: center; }

    /* ════ PAGE HERO ════ */
    .page-hero {
      background: var(--off);
      padding: 56px 48px 48px;
      border-bottom: 1px solid var(--border);
    }
    .page-hero-inner { max-width: 860px; margin: 0 auto; }
    .page-tag {
      display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: 2px;
      text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
    }
    .page-hero h1 {
      font-family: 'Sora', sans-serif;
      font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800;
      line-height: 1.15; margin-bottom: 14px;
    }
    .page-hero p { font-size: .95rem; color: var(--muted); line-height: 1.7; max-width: 560px; }
    .page-meta {
      display: flex; gap: 24px; margin-top: 24px; flex-wrap: wrap;
    }
    .page-meta span {
      font-size: .82rem; color: var(--muted);
      display: flex; align-items: center; gap: 6px;
    }
    .page-meta span::before {
      content: ''; display: block; width: 6px; height: 6px;
      background: var(--gold); border-radius: 50%;
    }

    /* ════ LAYOUT ════ */
    .content-wrap {
      max-width: 860px; margin: 0 auto;
      padding: 56px 48px 80px;
      display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start;
    }

    /* ── Sidebar / Índice ── */
    .toc {
      position: sticky; top: 88px;
      background: var(--white);
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      box-shadow: -4px 0 0 0 var(--gold), var(--shadow);
      padding: 24px 20px;
    }
    .toc h3 {
      font-family: 'Sora', sans-serif; font-size: .72rem; font-weight: 700;
      letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold);
      margin-bottom: 14px;
    }
    .toc ol { list-style: none; counter-reset: toc; }
    .toc ol li { counter-increment: toc; margin-bottom: 6px; }
    .toc ol li a {
      font-size: .82rem; color: var(--muted); line-height: 1.4;
      display: flex; gap: 7px; align-items: flex-start;
      transition: color .2s; padding: 3px 0;
    }
    .toc ol li a::before {
      content: counter(toc) ".";
      font-family: 'Sora', sans-serif; font-weight: 700; font-size: .75rem;
      color: var(--gold); flex-shrink: 0; min-width: 16px;
    }
    .toc ol li a:hover { color: var(--navy); }

    /* ── Conteúdo principal ── */
    .terms-body section {
      margin-bottom: 48px;
      padding-bottom: 48px;
      border-bottom: 1px solid var(--border);
    }
    .terms-body section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

    .terms-body h2 {
      font-family: 'Sora', sans-serif; font-size: 1.15rem; font-weight: 700;
      color: var(--navy); margin-bottom: 16px;
      display: flex; align-items: center; gap: 10px;
    }
    .terms-body h2 .num {
      display: inline-flex; align-items: center; justify-content: center;
      width: 28px; height: 28px; background: var(--gold);
      border-radius: 6px; font-size: .8rem; font-weight: 800; color: var(--navy);
      flex-shrink: 0;
    }
    .terms-body p {
      font-size: .93rem; line-height: 1.8; color: #374151; margin-bottom: 12px;
    }
    .terms-body p:last-child { margin-bottom: 0; }
    .terms-body ul {
      list-style: none; margin: 12px 0 12px 4px;
    }
    .terms-body ul li {
      font-size: .93rem; line-height: 1.75; color: #374151;
      padding: 4px 0 4px 20px; position: relative;
    }
    .terms-body ul li::before {
      content: '';
      position: absolute; left: 0; top: 12px;
      width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
    }

    /* Tabela de dados */
    .data-table {
      width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .88rem;
    }
    .data-table th {
      background: var(--navy); color: var(--white);
      font-family: 'Sora', sans-serif; font-weight: 600; font-size: .8rem;
      text-transform: uppercase; letter-spacing: .5px;
      padding: 12px 16px; text-align: left;
    }
    .data-table td {
      padding: 11px 16px; color: #374151; line-height: 1.55;
      border-bottom: 1px solid var(--border);
    }
    .data-table tr:last-child td { border-bottom: none; }
    .data-table tr:nth-child(even) td { background: var(--off); }

    /* Destaque box */
    .highlight-box {
      background: var(--off); border-left: 4px solid var(--gold);
      border-radius: 0 var(--radius) var(--radius) 0;
      padding: 16px 20px; margin: 16px 0;
      font-size: .9rem; line-height: 1.7; color: var(--navy);
    }

    /* Direitos cards */
    .rights-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0;
    }
    .right-card {
      background: var(--white); border: 1.5px solid var(--border);
      border-radius: var(--radius); padding: 16px 18px;
      box-shadow: -4px 0 0 0 var(--gold);
    }
    .right-card h4 {
      font-family: 'Sora', sans-serif; font-size: .88rem; font-weight: 700;
      color: var(--navy); margin-bottom: 5px;
    }
    .right-card p { font-size: .82rem; color: var(--muted); line-height: 1.55; margin: 0; }

    /* ════ FOOTER ════ */
    footer {
      background: var(--navy); padding: 60px 48px 0; color: rgba(255,255,255,.65);
    }
    .footer-grid {
      display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1fr;
      gap: 48px; max-width: 1160px; margin: 0 auto; padding-bottom: 48px;
    }
    .footer-brand p { font-size: .88rem; line-height: 1.65; margin-top: 10px; color: rgba(255,255,255,.5); }
    footer h4 {
      font-family: 'Sora', sans-serif; font-weight: 700; font-size: .8rem;
      letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
    }
    footer ul { list-style: none; }
    footer ul li { margin-bottom: 8px; }
    footer ul li a { font-size: .9rem; color: rgba(255,255,255,.65); transition: color .2s; }
    footer ul li a:hover { color: var(--white); }
    footer ul li span { font-size: .9rem; }
    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,.08);
      padding: 18px 0; max-width: 1160px; margin: 0 auto;
      display: flex; align-items: center; justify-content: space-between;
      font-size: .8rem; color: rgba(255,255,255,.35);
    }
    .footer-bottom a { color: rgba(255,255,255,.4); transition: color .2s; }
    .footer-bottom a:hover { color: var(--gold); }
    .footer-legal { display: flex; gap: 20px; }

    /* ════ RESPONSIVE ════ */
    @media (max-width: 960px) {
      header { padding: 0 24px; }
      header nav { display: none; }
      .hamburger { display: flex; }
      .page-hero { padding: 40px 24px 36px; }
      .content-wrap { grid-template-columns: 1fr; padding: 36px 24px 64px; gap: 32px; }
      .toc { position: static; }
      .rights-grid { grid-template-columns: 1fr; }
      footer { padding: 48px 24px 0; }
      .footer-grid { grid-template-columns: 1fr 1fr; padding-bottom: 32px; }
    }
    @media (max-width: 560px) {
      .data-table { font-size: .8rem; }
      .data-table th, .data-table td { padding: 9px 12px; }
      .footer-grid { grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    }