/* Skip link (acessibilidade) */
        .skip-link { position: absolute; top: -40px; left: 0; background: #0A4D68; color: #fff; padding: 8px 16px; z-index: 9999; font-size: 14px; border-radius: 0 0 4px 0; transition: top .2s; text-decoration: none; }
        .skip-link:focus { top: 0; }
        /* --- VARIÁVEIS (Padrão do Projeto) --- */
        :root {
            --primary: #0A4D68;       
            --primary-dark: #06384d;
            --accent: #047857;        
            --secondary: #D97706;     
            --bg-body: #FAFAF9;       
            --bg-card: #FFFFFF;
            --text-main: #1C1917;     
            --text-muted: #57534E;    
            --border-subtle: #E7E5E4; 
            --container-width: 1200px;
            --header-height: 90px;
        }

        [data-theme="dark"] {
            --bg-body: #0C0A09;
            --bg-card: #1C1917;
            --text-main: #F5F5F4;
            --text-muted: #A8A29E;
            --primary: #38BDF8;
            --accent: #34D399;
            --border-subtle: #292524;
        }

        /* --- GLOBAL --- */
        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Source Sans 3', sans-serif;
            background-color: var(--bg-body);
            color: var(--text-main);
            line-height: 1.7;
            transition: background-color 0.5s ease, color 0.5s ease;
            display: flex;
            flex-direction: column;
            min-height: 100vh; /* Garante que o footer fique embaixo */
        }

        h1, h2, h3, h4 {
            font-family: 'Playfair Display', serif;
            font-weight: 700;
            color: var(--primary);
            letter-spacing: -0.02em;
        }

        a { text-decoration: none; color: inherit; transition: 0.3s ease; }
        ul { list-style: none; }
        img { max-width: 100%; display: block; }

        /* --- ANIMAÇÕES --- */
        @keyframes rotate-scale {
            0% { transform: rotate(0) scale(1); }
            50% { transform: rotate(180deg) scale(1.2); }
            100% { transform: rotate(360deg) scale(1); }
        }
        
        .animate-theme-switch i, 
        .animate-theme-switch svg { 
            animation: rotate-scale 0.5s ease-in-out;
        }

        /* --- LAYOUT --- */
        .container {
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 0 24px;
        }

        /* --- HEADER --- */
        .top-bar {
            background-color: #0A4D68;
            color: #fff;
            padding: 8px 0;
            font-size: 0.85rem;
            position: relative;
            z-index: 1002;
        }
        .top-bar .container { display: flex; justify-content: flex-end; gap: 20px; }

        /* Lang Selector Styles */
        .lang-selector {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .lang-selector select {
            background: transparent;
            border: none;
            color: #fff;
            font-size: 0.85rem;
            cursor: pointer;
            outline: none;
        }
        .lang-selector select option {
            background-color: #0A4D68;
            color: #fff;
        }

        .main-header {
            background-color: var(--bg-card);
            border-bottom: 1px solid var(--border-subtle);
            position: sticky;
            top: 0;
            z-index: 1000;
            height: var(--header-height);
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        }
        .main-header .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }

        .logo {
            font-family: 'Playfair Display', serif;
            font-size: 2rem;
            font-weight: 700; 
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .nav-menu { display: flex; gap: 32px; }
        .nav-link {
            font-family: 'Source Sans 3', sans-serif;
            font-weight: 600;
            color: var(--text-muted);
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .nav-link:hover, .nav-link.active { color: var(--primary); }

        .btn-outline {
            border: 1px solid var(--primary);
            color: var(--primary);
            padding: 8px 24px;
            border-radius: 2px;
            text-transform: uppercase;
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 0.05em;
        }
        .btn-outline:hover { background-color: var(--primary); color: #fff; }

        /* --- CONTEÚDO LEGAL --- */
        .legal-page-header {
            padding: 80px 0 40px;
            text-align: center;
            background-color: var(--bg-body);
        }

        .legal-page-header h1 {
            font-size: 3.5rem;
            margin-bottom: 10px;
        }

        .last-updated {
            font-family: 'Source Sans 3', sans-serif;
            color: var(--text-muted);
            font-style: italic;
            font-size: 0.9rem;
        }

        .legal-content-wrapper {
            max-width: 800px;
            margin: 0 auto 100px;
            background-color: var(--bg-card);
            padding: 60px;
            border: 1px solid var(--border-subtle);
            border-radius: 2px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.03);
        }

        .legal-text h2 {
            font-size: 1.8rem;
            margin-top: 40px;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border-subtle);
            padding-bottom: 10px;
            color: var(--text-main);
        }

        .legal-text h3 {
            font-size: 1.3rem;
            margin-top: 30px;
            margin-bottom: 15px;
            color: var(--primary);
        }

        .legal-text p {
            margin-bottom: 20px;
            color: var(--text-muted);
            text-align: justify;
        }

        .legal-text ul {
            list-style: disc;
            padding-left: 20px;
            margin-bottom: 20px;
            color: var(--text-muted);
        }

        .legal-text li {
            margin-bottom: 10px;
        }

        /* Destaque para o Aviso Médico */
        .medical-disclaimer-box {
            background-color: rgba(217, 119, 6, 0.1); /* Amber suave */
            border-left: 4px solid var(--secondary);
            padding: 20px;
            margin: 30px 0;
            border-radius: 0 4px 4px 0;
        }

        .medical-disclaimer-box h3 {
            margin-top: 0;
            color: var(--secondary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* --- FOOTER (Padrão) --- */
        footer {
            background-color: #1C1917;
            color: #A8A29E;
            padding: 80px 0 0;
            font-size: 0.95rem;
            border-top: 4px solid var(--accent);
            margin-top: auto; /* Empurra o footer para o final */
        }
        
        .footer-grid {
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
            gap: 50px;
            padding-bottom: 60px;
        }

        .footer h4 { color: #fff; font-size: 1.3rem; margin-bottom: 25px; position: relative; }
        .footer h4::after { content: ''; display: block; width: 30px; height: 2px; background-color: var(--accent); margin-top: 10px; }
        .footer ul li { margin-bottom: 12px; }
        .footer ul li a { color: #A8A29E; transition: 0.2s; display: inline-block; } 
        .footer ul li a:hover { color: #fff; transform: translateX(5px); }
        .footer-bottom { border-top: 1px solid #333; padding: 30px 0; text-align: center; font-size: 0.85rem; background-color: #151312; }

        @media (max-width: 768px) {
            .nav-menu { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
            .legal-content-wrapper { padding: 30px 20px; border: none; box-shadow: none; background: transparent; }
            .page-header h1 { font-size: 2.5rem; }
        }
