:root {
    --brand-navy: #002855;
    --brand-navy-dark: #001b3a;
    --brand-red: #c8102e;
    --bg-page: #f4f6f9;
    --bg-card: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --accent-soft: #eef3f9;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 40, 85, 0.07);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-page);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.site-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-cultura {
    color: var(--brand-navy);
    font-size: 1.35rem;
}

.brand-inglesa {
    color: var(--brand-red);
    font-size: 1.35rem;
}

.brand-divider {
    width: 1px;
    height: 26px;
    background-color: var(--border-color);
}

.brand-region {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-print {
    background-color: var(--bg-card);
    color: var(--brand-navy);
    border: 1px solid var(--brand-navy);
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-print:hover {
    background-color: var(--brand-navy);
    color: #ffffff;
}

/* Hero Banner */
.hero {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
    color: #ffffff;
    padding: 3rem 0 3.25rem;
    border-bottom: 4px solid var(--brand-red);
}

.badge-lgpd {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

.hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.82);
}

/* Layout Grid */
.layout-grid {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 2rem;
    padding-top: 2.25rem;
    padding-bottom: 3.5rem;
    align-items: start;
}

/* Sidebar TOC */
.sidebar {
    position: sticky;
    top: 90px;
}

.toc-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.toc-title {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-list li + li {
    margin-top: 0.25rem;
}

.toc-list a {
    display: block;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.toc-list a:hover {
    background-color: var(--accent-soft);
    color: var(--brand-navy);
}

/* Main Document */
.document-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.intro-block p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.callout {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0 0.5rem;
    font-size: 0.94rem;
}

.callout-info {
    background-color: var(--accent-soft);
    border-left: 4px solid var(--brand-navy);
    color: var(--text-primary);
}

.policy-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    scroll-margin-top: 90px;
}

.policy-section h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.3;
}

.policy-section p {
    margin: 0 0 1rem;
}

/* Controllers Cards */
.controllers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

.controller-item {
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.2rem;
}

.controller-item h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-navy);
}

.controller-item .cnpj {
    margin: 0 0 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-red);
}

.controller-item p:last-child {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Lists */
.styled-list,
.rights-list {
    margin: 0.75rem 0 1rem;
    padding-left: 1.35rem;
}

.styled-list li,
.rights-list li {
    margin-bottom: 0.65rem;
    padding-left: 0.25rem;
}

.legal-tag {
    display: inline-block;
    background-color: var(--accent-soft);
    color: var(--brand-navy);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #d5e0ee;
}

/* DPO Card */
.dpo-card {
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-red);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.5rem;
    margin-top: 1.25rem;
}

.dpo-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dpo-row + .dpo-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.dpo-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.dpo-value {
    font-size: 0.96rem;
    color: var(--text-primary);
}

.dpo-value a {
    color: var(--brand-navy);
    font-weight: 600;
    text-decoration: underline;
}

.dpo-value a:hover {
    color: var(--brand-red);
}

/* Signature */
.document-signature {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 2px solid var(--border-color);
    text-align: right;
}

.signature-date {
    margin: 0 0 1.25rem;
    color: var(--text-secondary);
}

.signature-entity {
    margin: 0;
    font-weight: 700;
    color: var(--brand-navy);
}

.signature-role {
    margin: 0.15rem 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Footer */
.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-to-top {
    color: var(--brand-navy);
    font-weight: 600;
    text-decoration: none;
}

.back-to-top:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .document-card {
        padding: 1.75rem 1.35rem;
    }
}

@media (max-width: 640px) {
    .controllers-grid {
        grid-template-columns: 1fr;
    }

    .brand-divider,
    .brand-region {
        display: none;
    }

    .document-signature {
        text-align: left;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: #ffffff;
    }

    .site-header,
    .sidebar,
    .site-footer {
        display: none;
    }

    .hero {
        background: none;
        color: #000000;
        padding: 0 0 1rem;
        border-bottom: 2px solid #000000;
    }

    .badge-lgpd {
        border: 1px solid #000000;
        color: #000000;
    }

    .hero-subtitle,
    .hero-meta {
        color: #333333;
    }

    .layout-grid {
        display: block;
        padding: 1rem 0;
    }

    .document-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}