/* ─── Reset & Base ─────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
    --purple-dark: #4a1a8a;
    --purple: #6b2fa0;
    --purple-mid: #8b3fc0;
    --pink: #c0306a;
    --orange: #f7931e;
    --orange-light: #ffb347;
    --blue: #1565c0;
    --blue-mid: #1e88e5;
    --blue-light: #42a5f5;
    --white: #ffffff;
    --gray-bg: #f5f5f7;
    --text-dark: #1a1a2e;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* ─── Header ────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #444;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.2s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--purple);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--purple);
    font-weight: 600;
}

.btn-entrar {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 4px 16px rgba(107, 47, 160, 0.35);
}

.btn-entrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 47, 160, 0.5) !important;
}

.btn-entrar::after {
    display: none !important;
}

/* ─── Main Content ──────────────────────────────────────── */
main {
    padding-top: 100px;
    padding-bottom: 60px;
}

.policy-header {
    background: linear-gradient(135deg, var(--purple), var(--purple-mid));
    color: #fff;
    padding: 60px 5%;
    text-align: center;
}

.policy-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.policy-header p {
    font-size: 1.05rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5%;
}

.policy-section {
    margin: 48px 0;
}

.policy-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--purple-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.policy-section h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    border-radius: 2px;
}

.policy-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--purple);
    margin: 24px 0 12px 0;
}

.policy-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 14px;
}

.policy-section ul,
.policy-section ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.policy-section li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 10px;
}

.policy-section ul li::marker {
    color: var(--orange);
    font-weight: 600;
}

.policy-section ol li::marker {
    color: var(--purple);
    font-weight: 600;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(107, 47, 160, 0.08), rgba(247, 147, 30, 0.08));
    border-left: 4px solid var(--purple);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
}

.highlight-box p {
    margin: 0;
    font-weight: 500;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.right-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 16px;
    border-radius: var(--radius-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.right-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.right-card h4 {
    color: var(--purple-dark);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.right-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.contact-section {
    background: linear-gradient(135deg, var(--blue-mid), var(--blue));
    color: #fff;
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 48px 0;
}

.contact-section h2 {
    color: #fff;
    margin-bottom: 16px;
}

.contact-section h2::before {
    display: none;
}

.contact-info {
    font-size: 1rem;
    line-height: 1.8;
    margin: 20px 0;
}

.contact-info a {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.contact-info a:hover {
    opacity: 0.8;
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
    background: linear-gradient(135deg, var(--text-dark), #2a2a45);
    color: #fff;
    padding: 40px 5%;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

footer p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ─── Table of Contents ─────────────────────────────────── */
.toc {
    background: var(--gray-bg);
    padding: 24px;
    border-radius: var(--radius-md);
    margin: 32px 0;
}

.toc h3 {
    color: var(--purple-dark);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.toc ul {
    list-style: none;
    margin: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--purple);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.toc a:hover {
    color: var(--orange);
    text-decoration: underline;
}

.last-update {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: #856404;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    header {
        padding: 0 4%;
    }

    nav {
        gap: 16px;
    }

    nav a {
        font-size: 0.75rem;
    }

    .policy-header {
        padding: 40px 4%;
    }

    .policy-header h1 {
        font-size: 1.8rem;
    }

    .policy-section h2 {
        font-size: 1.4rem;
    }

    .policy-section h3 {
        font-size: 1rem;
    }

    .contact-section {
        padding: 30px 20px;
    }

    .rights-grid {
        grid-template-columns: 1fr;
    }
}