/* WhautoVoice theme. Shared across every page. Light and dark. */

:root {
    --primary: #5f4dee;
    --primary-dark: #4936a2;
    --primary-light: #7b6cf6;
    --primary-soft: rgba(95, 77, 238, 0.10);
    --primary-soft-2: rgba(95, 77, 238, 0.18);
    --accent-grad: linear-gradient(135deg, #683ee1 0%, #b08afd 100%);
    --hero-grad: linear-gradient(90deg, #5f4dee 0%, #b08afd 100%);
    --success: #16a34a;
    --success-soft: rgba(34, 197, 94, 0.12);
    --warn: #d97706;
    --warn-soft: rgba(245, 158, 11, 0.14);
    --danger: #dc2626;
    --danger-soft: rgba(239, 68, 68, 0.12);

    --bg: #f9fafb;
    --bg-alt: #f3f4f6;
    --surface: #ffffff;
    --surface-2: #f3f4f6;
    --surface-3: #eceef5;
    --text: #181b32;
    --text-2: #3f4460;
    --text-muted: #626784;
    --border: #e5e7eb;
    --border-strong: #d1d5e0;
    --header-bg: rgba(255, 255, 255, 0.92);
    --footer-bg: #181b32;
    --footer-text: rgba(255, 255, 255, 0.72);
    --code-bg: #f3f4f6;

    --shadow-sm: 0 1px 2px rgba(24, 27, 50, 0.05);
    --shadow: 0 8px 24px rgba(24, 27, 50, 0.07);
    --shadow-lg: 0 20px 50px rgba(24, 27, 50, 0.12);
    --shadow-brand: 0 10px 30px rgba(95, 77, 238, 0.18);
    --radius: 12px;
    --radius-lg: 18px;
    --transition: 0.25s ease;

    color-scheme: light;
}

html[data-theme="dark"] {
    --primary: #8b7cf7;
    --primary-dark: #6f5df0;
    --primary-light: #a798fb;
    --primary-soft: rgba(139, 124, 247, 0.14);
    --primary-soft-2: rgba(139, 124, 247, 0.24);
    --hero-grad: linear-gradient(90deg, #a798fb 0%, #d3c2ff 100%);
    --success: #4ade80;
    --success-soft: rgba(74, 222, 128, 0.14);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.14);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.14);

    --bg: #0e1020;
    --bg-alt: #13162a;
    --surface: #171a2e;
    --surface-2: #1e2238;
    --surface-3: #262b47;
    --text: #eef0f8;
    --text-2: #c9cde0;
    --text-muted: #a2a8c4;
    --border: #2a2f4d;
    --border-strong: #3a4066;
    --header-bg: rgba(14, 16, 32, 0.9);
    --footer-bg: #0a0b18;
    --footer-text: rgba(255, 255, 255, 0.7);
    --code-bg: #1e2238;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-brand: 0 10px 30px rgba(139, 124, 247, 0.22);

    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        --primary: #8b7cf7;
        --primary-dark: #6f5df0;
        --primary-light: #a798fb;
        --primary-soft: rgba(139, 124, 247, 0.14);
        --primary-soft-2: rgba(139, 124, 247, 0.24);
        --hero-grad: linear-gradient(90deg, #a798fb 0%, #d3c2ff 100%);
        --success: #4ade80;
        --success-soft: rgba(74, 222, 128, 0.14);
        --warn: #fbbf24;
        --warn-soft: rgba(251, 191, 36, 0.14);
        --danger: #f87171;
        --danger-soft: rgba(248, 113, 113, 0.14);

        --bg: #0e1020;
        --bg-alt: #13162a;
        --surface: #171a2e;
        --surface-2: #1e2238;
        --surface-3: #262b47;
        --text: #eef0f8;
        --text-2: #c9cde0;
        --text-muted: #a2a8c4;
        --border: #2a2f4d;
        --border-strong: #3a4066;
        --header-bg: rgba(14, 16, 32, 0.9);
        --footer-bg: #0a0b18;
        --footer-text: rgba(255, 255, 255, 0.7);
        --code-bg: #1e2238;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
        --shadow-brand: 0 10px 30px rgba(139, 124, 247, 0.22);

        color-scheme: dark;
    }
}

/* Base */

html {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
}

img,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--primary);
}

h1,
h2,
h3,
h4 {
    margin: 0 0 16px;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.01em;
}

h1 {
    font-size: 48px;
    font-weight: 800;
}

h2 {
    font-size: 36px;
    font-weight: 800;
}

h3 {
    font-size: 24px;
    font-weight: 700;
}

p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 17px;
}

strong {
    color: var(--text);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 860px;
}

section {
    padding: 90px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

.section-header p {
    font-size: 19px;
}

.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.grad-text {
    background: var(--hero-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-center {
    text-align: center;
}

.muted {
    color: var(--text-muted);
}

.small {
    font-size: 14px;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-brand);
}

.btn.outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn.outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn.ghost {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.btn.ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface);
    box-shadow: none;
}

.btn.large {
    padding: 16px 32px;
    font-size: 17px;
}

.btn.white {
    background: #fff;
    color: var(--primary-dark);
}

.btn.white:hover {
    background: #f3f0ff;
    color: var(--primary-dark);
}

/* Header */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background-color var(--transition), border-color var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 44px;
    width: auto;
    display: block;
}

html[data-theme="dark"] .logo img,
html[data-theme="dark"] .footer-logo img {
    filter: brightness(0) invert(1);
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .logo img,
    html:not([data-theme="light"]) .footer-logo img {
        filter: brightness(0) invert(1);
    }
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 6px;
}

nav ul li {
    list-style: none;
    padding: 0;
    position: relative;
}

nav ul li a {
    display: inline-block;
    padding: 8px 12px;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-2);
    text-decoration: none;
    border-radius: 8px;
    transition: color var(--transition), background-color var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

nav ul li a.btn {
    padding: 10px 18px;
    color: #fff;
    font-size: 15px;
    margin-left: 6px;
}

nav ul li a.btn:hover {
    color: #fff;
    background: var(--primary-dark);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .theme-toggle .icon-sun {
        display: block;
    }

    html:not([data-theme="light"]) .theme-toggle .icon-moon {
        display: none;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 5;
    margin-left: 6px;
}

nav {
    margin-left: auto;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu__line {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu.active .hamburger-menu__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .hamburger-menu__line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-menu__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
    nav ul li a {
        padding: 8px 9px;
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .header-container {
        flex-wrap: wrap;
    }

    .hamburger-menu {
        display: block;
        order: 3;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
    }

    nav {
        order: 4;
        flex: 0 0 100%;
        height: 0;
    }

    nav ul#main-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 12px 20px 20px;
        gap: 4px;
    }

    nav ul#main-nav.mobile-nav-active {
        display: flex;
    }

    nav ul#main-nav li a {
        display: block;
        padding: 12px 10px;
        font-size: 16px;
        text-align: left;
    }

    nav ul#main-nav li a.btn {
        text-align: center;
        margin: 8px 0 0;
    }
}

/* Footer */

footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 72px 0 28px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-about p {
    color: var(--footer-text);
    font-size: 15px;
    max-width: 340px;
}

.footer-links h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 18px;
}

.footer-links h3 + ul + h3 {
    margin-top: 28px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
    color: var(--footer-text);
    font-size: 15px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
    color: #b08afd;
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 4px 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #b08afd;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Page hero for inner pages */

.page-hero {
    padding: 150px 0 50px;
    text-align: center;
    background:
        radial-gradient(ellipse at 20% 0%, var(--primary-soft) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 10%, rgba(176, 138, 253, 0.12) 0%, transparent 50%),
        var(--bg);
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 14px;
}

.page-hero p {
    font-size: 19px;
    max-width: 760px;
    margin: 0 auto;
}

.breadcrumbs {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

/* Cards */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-soft-2);
}

/* FAQ */

.faq-container {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.faq-question {
    width: 100%;
    padding: 20px 22px;
    background: var(--surface);
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: transform var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 22px 22px;
    text-align: left;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Calculator shared styles (tools) */

.calc-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: start;
}

.calc-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.calc-panel h2,
.calc-panel h3 {
    margin-bottom: 8px;
}

.calc-panel > p {
    font-size: 15px;
}

.calc-group {
    margin-bottom: 22px;
}

.calc-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 8px;
    gap: 12px;
}

.calc-label .calc-hint {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 13px;
}

.calc-value {
    color: var(--primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

.calc-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
}

.calc-input:focus {
    outline: 2px solid var(--primary-soft-2);
    border-color: var(--primary);
}

.calc-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.calc-results {
    position: sticky;
    top: 100px;
}

.result-hero {
    background: var(--accent-grad);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-brand);
}

.result-hero .result-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
}

.result-hero .result-number {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    margin: 6px 0 4px;
    font-variant-numeric: tabular-nums;
}

.result-hero p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 15px;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.result-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.result-stat .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.result-stat .stat-number {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

.result-stat .stat-number.good {
    color: var(--success);
}

.result-stat .stat-number.bad {
    color: var(--danger);
}

.result-stat .stat-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.result-cta {
    margin-top: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.result-cta p {
    font-size: 15px;
    margin-bottom: 14px;
}

.bar-compare {
    margin-top: 16px;
}

.bar-row {
    margin-bottom: 12px;
}

.bar-row .bar-head {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.bar-track {
    height: 14px;
    background: var(--surface-3);
    border-radius: 7px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 7px;
    background: var(--text-muted);
    transition: width 0.4s ease;
}

.bar-fill.brand {
    background: var(--accent-grad);
}

.methodology {
    max-width: 860px;
    margin: 0 auto;
}

.methodology h2 {
    font-size: 28px;
    margin-top: 40px;
}

.methodology h2:first-child {
    margin-top: 0;
}

.methodology ul,
.methodology ol {
    color: var(--text-muted);
    font-size: 17px;
    padding-left: 22px;
}

.methodology li {
    margin-bottom: 8px;
}

.methodology table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 15px;
}

.methodology th,
.methodology td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
}

.methodology th {
    color: var(--text);
    font-weight: 700;
}

.table-scroll {
    overflow-x: auto;
}

.tool-share {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.tool-share .btn {
    padding: 10px 16px;
    font-size: 14px;
}

.related-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.related-tools .card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.related-tools .card p {
    font-size: 15px;
    margin-bottom: 12px;
}

.related-tools .card a.more {
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 900px) {
    .calc-layout {
        grid-template-columns: 1fr;
    }

    .calc-results {
        position: static;
    }
}

@media (max-width: 600px) {
    .calc-inline {
        grid-template-columns: 1fr;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }
}

/* Final CTA banner */

.cta-banner {
    background: linear-gradient(135deg, #4936a2 0%, #5f4dee 50%, #8b5cf6 100%);
    color: #fff;
    text-align: center;
    padding: 90px 0;
}

.cta-banner h2 {
    color: #fff;
    font-size: 38px;
    margin-bottom: 14px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    max-width: 680px;
    margin: 0 auto 30px;
}

.cta-banner .cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cta-banner .btn.outline {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.cta-banner .btn.outline:hover {
    background: #fff;
    color: var(--primary-dark);
}

.cta-banner .trust-line {
    margin-top: 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

/* Legal pages */

.legal-content {
    padding: 50px 0 90px;
}

.legal-content .container {
    max-width: 880px;
}

.legal-toc {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 22px 26px;
    border-radius: var(--radius);
    margin-bottom: 36px;
}

.legal-toc h3 {
    font-size: 17px;
    margin: 0 0 12px;
}

.legal-toc ol {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 30px;
}

.legal-toc li {
    margin-bottom: 6px;
    font-size: 15px;
}

.legal-toc a {
    text-decoration: none;
}

.legal-toc a:hover {
    text-decoration: underline;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 24px;
    margin-bottom: 14px;
}

.legal-section h3 {
    font-size: 19px;
    margin: 22px 0 10px;
}

.legal-section p,
.legal-section li {
    color: var(--text-2);
    font-size: 16px;
}

.legal-section ul {
    padding-left: 22px;
    margin-bottom: 16px;
}

.legal-section li {
    margin-bottom: 8px;
}

.last-updated {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 15px;
}

@media (max-width: 700px) {
    .legal-toc ol {
        columns: 1;
    }
}

/* Cookie banner */

#cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--footer-bg);
    color: #fff;
    z-index: 9999;
    padding: 18px 16px;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.2);
    font-size: 15px;
    line-height: 1.5;
}

#cookie-consent-banner .cookie-consent-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#cookie-consent-banner span {
    color: rgba(255, 255, 255, 0.85);
}

#cookie-consent-banner a {
    color: #b08afd;
    text-decoration: underline;
}

#cookie-consent-banner .btn {
    padding: 10px 22px;
    font-size: 15px;
}

/* Scroll reveal */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 80ms);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

html.no-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Responsive type */

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 30px;
    }

    section {
        padding: 64px 0;
    }

    .page-hero {
        padding: 120px 0 40px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .cta-banner h2 {
        font-size: 30px;
    }
}
