:root {
    --bg: #f7f1e4;
    --paper: #fdf8ec;
    --surface: rgba(255, 250, 240, 0.78);
    --ink: #0d2728;
    --ink-soft: #143536;
    --ink-mid: rgba(20, 53, 54, 0.66);
    --ink-faint: rgba(20, 53, 54, 0.42);
    --line: rgba(20, 53, 54, 0.14);
    --line-strong: rgba(20, 53, 54, 0.26);
    --line-soft: rgba(20, 53, 54, 0.08);
    --teal: #1f6a67;
    --teal-deep: #0f3d3e;
    --teal-ink: #082729;
    --gold: #e8ba4e;
    --shadow-card: 0 22px 60px -28px rgba(13, 41, 42, 0.4), 0 4px 12px -6px rgba(13, 41, 42, 0.08);
    --r-pill: 999px;
    --r-xl: 28px;
    --r-md: 14px;
    --container: min(1100px, calc(100vw - 48px));
    --f-display: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --f-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (max-width: 720px) {
    :root {
        --container: min(1100px, calc(100vw - 32px));
    }
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(70% 40% at 15% 5%, rgba(232, 186, 78, 0.18), transparent 60%),
        radial-gradient(60% 50% at 85% 0%, rgba(31, 106, 103, 0.18), transparent 55%),
        linear-gradient(180deg, #fff9ef 0%, #f7f0e0 45%, #f2eadb 100%);
    color: var(--ink);
    font-family: var(--f-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.nav-inner,
.legal-shell,
.footer-shell,
.footer-bottom {
    width: var(--container);
    margin: 0 auto;
}

.site-nav {
    position: fixed;
    inset: 16px 0 auto;
    z-index: 1000;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 12px 10px 18px;
    border-radius: 999px;
    background: rgba(253, 248, 236, 0.78);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 8px 28px -16px rgba(13, 41, 42, 0.3);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--teal-deep);
}

.nav-brand-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav-brand-image-large {
    display: none;
}

.nav-brand-word {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    color: var(--teal-deep);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    margin: 5px auto;
    background: var(--teal-deep);
    border-radius: 999px;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links a {
    padding: 8px 14px;
    color: var(--ink-mid);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--r-pill);
    transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
    color: var(--teal-deep);
    background: rgba(20, 53, 54, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: var(--r-pill);
    background: rgba(20, 53, 54, 0.06);
    border: 1px solid var(--line-soft);
}

.lang-button {
    min-width: 36px;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--ink-mid);
    font-family: var(--f-mono);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.lang-button.is-active {
    background: #ffffff;
    color: var(--teal-deep);
    box-shadow: 0 6px 16px -8px rgba(15, 61, 62, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--r-pill);
    background: var(--teal-ink);
    color: #fffcf0;
    font-family: var(--f-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 18px 38px -16px rgba(15, 61, 62, 0.5);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms ease;
}

.btn:hover {
    transform: translate3d(0, -2px, 0);
    background: var(--teal-deep);
}

.btn-compact {
    min-height: 40px;
    padding: 0 16px;
}

.legal-main {
    padding: 142px 0 78px;
}

.legal-shell {
    position: relative;
    padding: clamp(32px, 4vw, 56px);
    border-radius: var(--r-xl);
    background: rgba(255, 252, 244, 0.78);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.legal-shell h1,
.legal-shell h2,
.legal-shell h3 {
    font-family: var(--f-display);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--teal-deep);
}

.legal-shell h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin: 0 0 28px;
    line-height: 1.02;
}

.legal-shell h2 {
    margin: 32px 0 12px;
    font-size: 1.55rem;
}

.legal-shell h3 {
    margin: 22px 0 10px;
    font-size: 1.2rem;
}

.legal-shell p,
.legal-shell li {
    color: var(--ink-mid);
    line-height: 1.78;
    font-size: 1rem;
}

.legal-shell a {
    color: var(--teal-deep);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

.legal-shell a:hover {
    text-decoration-color: var(--teal);
}

.site-footer {
    padding: 0 0 36px;
    margin-top: 80px;
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 40px);
    padding: clamp(28px, 3.5vw, 40px);
    border-radius: var(--r-xl);
    background: rgba(255, 252, 244, 0.78);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--teal-deep);
}

.footer-brand-image {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.footer-brand-word {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-desc {
    margin: 14px 0 0;
    color: var(--ink-mid);
    line-height: 1.7;
    max-width: 36ch;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(20, 53, 54, 0.05);
    border: 1px solid var(--line-soft);
    color: var(--teal-deep);
    text-decoration: none;
    transition: background 200ms ease, color 200ms ease, transform 240ms ease;
}

.footer-social a:hover {
    background: var(--teal-ink);
    color: var(--gold);
    transform: translate3d(0, -2px, 0);
}

.footer-column h4 {
    margin: 0 0 14px;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink-soft);
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a,
.footer-legal a {
    color: var(--ink-mid);
    text-decoration: none;
    font-size: 0.94rem;
    transition: color 180ms ease;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--teal-deep);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 8px 0;
    color: var(--ink-faint);
    font-size: 0.88rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 1120px) {
    .footer-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .site-nav {
        inset: 12px 0 auto;
    }

    .nav-inner {
        padding: 8px 10px 8px 14px;
        border-radius: 22px;
    }

    .nav-brand-word {
        display: none;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-panel {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: grid;
        gap: 6px;
        padding: 14px;
        border-radius: var(--r-xl);
        background: rgba(253, 248, 236, 0.96);
        border: 1px solid var(--line);
        box-shadow: var(--shadow-card);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 200ms ease, transform 220ms ease;
    }

    .site-nav.is-open .nav-panel {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links {
        display: grid;
        gap: 4px;
    }

    .nav-links a {
        padding: 12px 14px;
        font-size: 1rem;
        border-radius: 14px;
    }

    .legal-main {
        padding-top: 116px;
    }

    .footer-shell {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 540px) {
    .nav-brand-image { width: 32px; height: 32px; }
    .lang-button { min-width: 32px; padding: 0 8px; }
    .nav-cta { display: none; }
}
