:root {
    --white: #ffffff;
    --paper: #ffffff;
    --surface: #f7f8fb;
    --line: #dde4ec;
    --line-strong: #c7d2df;
    --text: #0f1d2e;
    --text-soft: #516376;
    --text-muted: #79889c;
    --primary: #183e7a;
    --primary-soft: #ecf2fb;
    --accent: #18b7a8;
    --shadow-lg: 0 10px 24px rgba(17, 32, 51, 0.035);
    --shadow-md: 0 4px 10px rgba(17, 32, 51, 0.025);
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 12px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: linear-gradient(180deg, #fcfdff 0%, #f6f8fb 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.legal-shell {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.legal-topbar {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
    font-size: 0.98rem;
}

.legal-brand-mark {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #133f92 0%, #18b7a8 100%);
    color: var(--white);
    box-shadow: none;
}

.legal-brand-mark-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.legal-back-link {
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.95rem;
}

.legal-page {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 24px 72px;
}

.legal-hero {
    margin-bottom: 24px;
}

.legal-kicker {
    display: inline-flex;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: var(--text);
    font-weight: 650;
}

.legal-subtitle {
    max-width: 680px;
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.7;
    margin: 0;
}

.legal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.legal-link-chip {
    padding: 4px 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.legal-link-chip:hover {
    border-color: var(--line-strong);
    color: var(--text);
}

.legal-link-chip.active {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.legal-language-switch {
    display: inline-flex;
    gap: 6px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.legal-language-btn {
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    padding: 4px 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid transparent;
}

.legal-language-btn.active {
    background: transparent;
    color: var(--primary);
    box-shadow: none;
    border-bottom-color: var(--primary);
}

.legal-language-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.legal-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 10px 0 0;
    backdrop-filter: none;
}

.legal-content {
    display: grid;
    gap: 0;
}

.legal-section {
    border-radius: 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--line);
    padding: 18px 0 16px;
}

.legal-section-title {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--text);
    font-weight: 700;
}

.legal-section-body {
    display: grid;
    gap: 12px;
}

.legal-section-body p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.78;
    font-size: 0.98rem;
    max-width: 760px;
}

.legal-note {
    color: var(--text-muted);
    line-height: 1.7;
}

.about-grid,
.about-products,
.about-bottom-grid {
    display: grid;
    gap: 0;
}

.about-grid {
    grid-template-columns: 1fr;
    margin-bottom: 0;
}

.about-products {
    grid-template-columns: 1fr;
    margin: 0;
}

.about-bottom-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
}

.about-panel,
.about-product-card,
.about-quote {
    background: transparent;
    border: none;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 22px 0;
    box-shadow: none;
}

.about-panel-hero {
    background: transparent;
}

.about-highlight-stack {
    display: grid;
    gap: 10px;
}

.about-highlight-card {
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 14px 16px;
}

.about-highlight-label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-highlight-card strong {
    display: block;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

.about-panel h2,
.about-product-card h3,
.about-quote h2 {
    margin: 0 0 12px;
    color: var(--text);
    letter-spacing: -0.02em;
    font-size: 1.14rem;
    line-height: 1.34;
}

.about-panel p,
.about-product-card p,
.about-quote p,
.about-list li {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.72;
    font-size: 0.98rem;
    max-width: 760px;
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.about-list li {
    position: relative;
    padding-left: 18px;
}

.about-list li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.about-stat {
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 14px;
}

.about-stat-value {
    display: block;
    color: var(--primary);
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.about-stat-label {
    display: block;
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

.about-product-card {
    min-height: 100%;
}

.about-product-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.about-quote {
    margin-top: 0;
    background: transparent;
}

@media (max-width: 760px) {
    .legal-topbar {
        padding-top: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .legal-page {
        padding: 28px 16px 52px;
    }

    .legal-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .legal-card {
        padding: 8px 0 0;
        border-radius: 0;
    }

    .legal-section {
        padding: 16px 0 12px;
        border-radius: 0;
    }

    .legal-hero h1 {
        font-size: 1.9rem;
    }

    .about-grid,
    .about-products,
    .about-bottom-grid,
    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-panel,
    .about-product-card,
    .about-quote {
        padding: 18px 0;
    }
}
