:root {
    --gld-bg-deep: #14100a;
    --gld-bg-panel: #1f160e;
    --gld-bg-elevated: #2a1a0e;
    --gld-bg-input: #1a120a;
    --gld-border: #876e3e;
    --gld-border-soft: #c9a66b;
    --gld-text: #f4e4c1;
    --gld-text-muted: #b8a882;
    --gld-accent: #ba9700;
    --gld-accent-hover: #ffcc66;
    --gld-gold: #ffcc66;
    --gld-parchment: #ebe0c4;
    --gld-parchment-light: #f4e4c1;
    --gld-wood-dark: #5c3a1c;
    --gld-wood-mid: #7a4e26;
    --gld-success: #4a7c2a;
    --gld-danger: #8b2222;
    --gld-radius: 4px;
    --gld-radius-sm: 3px;
    --gld-shadow: 0 16px 40px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.06);
    --gld-font: Tahoma, "Segoe UI", Arial, sans-serif;
    --gld-font-display: Georgia, "Times New Roman", serif;
    --sidebar-w: 280px;
}

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

html, body {
    min-height: 100%;
    font-family: var(--gld-font);
    background: var(--gld-bg-deep);
    color: var(--gld-text);
}

body.app {
    display: flex;
    min-height: 100vh;
}

body.app::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 15% 0%, rgb(186 151 0 / 0.12), transparent 55%),
        radial-gradient(ellipse 50% 35% at 95% 100%, rgb(92 58 28 / 0.18), transparent 50%),
        linear-gradient(180deg, #1a120a 0%, #0e0a06 100%);
    pointer-events: none;
    z-index: 0;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.1rem 0.9rem;
    background: linear-gradient(180deg, #5c3a1c 0%, #3d2814 45%, #2a1a0e 100%);
    border-right: 2px solid var(--gld-border);
    box-shadow: 4px 0 24px rgb(0 0 0 / 0.35);
    z-index: 100;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.25rem 1.25rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid rgb(255 204 102 / 0.22);
}

.sidebar-brand img.sidebar-logo-full {
    width: 100%;
    max-width: 248px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgb(0 0 0 / 0.4));
}

.sidebar-brand .sidebar-version {
    font-family: var(--gld-font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gld-gold);
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.45);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.sidebar button,
.sidebar .sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.68rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--gld-parchment);
    background: rgb(0 0 0 / 0.22);
    border: 1px solid rgb(255 204 102 / 0.28);
    border-radius: var(--gld-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.sidebar-link-chrome i {
    color: var(--gld-gold);
}

.sidebar-link-chrome {
    background: linear-gradient(180deg, rgb(26 115 232 / 0.18), rgb(0 0 0 / 0.28));
    border-color: rgb(66 133 244 / 0.42);
}

.sidebar-link-chrome:hover {
    border-color: rgb(110 168 254 / 0.9);
    box-shadow: 0 0 14px rgb(66 133 244 / 0.18);
}

.hero-features a {
    color: var(--gld-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-features a:hover {
    color: #fff8cf;
}

.sidebar button i {
    width: 1rem;
    text-align: center;
    color: var(--gld-gold);
}

.sidebar button:hover,
.sidebar .sidebar-link:hover {
    color: #fff8cf;
    background: rgb(0 0 0 / 0.35);
    border-color: var(--gld-gold);
}

.sidebar button.is-accent,
#buyButton {
    background: linear-gradient(180deg, rgb(186 151 0 / 0.35), rgb(92 58 28 / 0.45));
    border-color: var(--gld-gold);
    color: #fff8cf;
    font-family: var(--gld-font-display);
    letter-spacing: 0.04em;
}

.sidebar button.is-accent:hover,
#buyButton:hover {
    box-shadow: 0 0 16px rgb(255 204 102 / 0.22);
    background: linear-gradient(180deg, rgb(212 167 66 / 0.4), rgb(92 58 28 / 0.55));
}

.sidebar-footer-links {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgb(255 204 102 / 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sidebar-footer-links a {
    font-size: 0.72rem;
    color: rgb(244 228 193 / 0.65);
    text-decoration: none;
    text-align: center;
    padding: 0.3rem;
}

.sidebar-footer-links a:hover { color: var(--gld-gold); }

/* Main */
.site-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.75rem;
}

.site-view {
    width: 100%;
    max-width: 1100px;
    display: none;
    animation: view-in 0.35s ease;
}

@keyframes view-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

#hero-view.site-view {
    max-width: min(1680px, 96vw);
    width: 100%;
}

.site-view.is-active { display: block; }

/* Hero */
.hero-panel {
    display: grid;
    grid-template-columns: minmax(300px, 0.5fr) minmax(0, 1.55fr);
    gap: 0;
    align-items: stretch;
    min-height: min(88vh, 860px);
    background: linear-gradient(165deg, #2a1a0e 0%, #1f160e 100%);
    border: 2px solid var(--gld-border);
    border-radius: var(--gld-radius);
    padding: 0;
    box-shadow: var(--gld-shadow);
    overflow: hidden;
}

.hero-copy {
    padding: 2.25rem 2rem;
    background:
        linear-gradient(180deg, rgb(244 228 193 / 0.06), transparent 40%),
        linear-gradient(165deg, #3d2814 0%, #2a1a0e 100%);
    border-right: 1px solid rgb(135 110 62 / 0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.65rem;
    width: fit-content;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gld-gold);
    background: rgb(0 0 0 / 0.28);
    border: 1px solid rgb(255 204 102 / 0.3);
    border-radius: var(--gld-radius-sm);
}

.hero-eyebrow img {
    width: 22px;
    height: 22px;
}

.hero-copy h1 {
    font-family: var(--gld-font-display);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.85rem;
    color: var(--gld-parchment-light);
    text-shadow: 0 2px 6px rgb(0 0 0 / 0.35);
}

.hero-copy h1 span {
    color: var(--gld-gold);
}

.hero-copy > p {
    color: var(--gld-text-muted);
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 1.35rem;
}

.hero-features {
    list-style: none;
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.hero-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.86rem;
    color: #dacfa2;
    line-height: 1.45;
}

.hero-features li::before {
    content: "⚔";
    font-size: 0.72rem;
    color: var(--gld-gold);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.1rem;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: var(--gld-radius-sm);
    border: 1px solid var(--gld-border);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.hero-btn:active { transform: scale(0.98); }

.hero-btn-primary {
    color: #1a1008;
    background: linear-gradient(180deg, #ffcc66, #ba9700);
    border-color: #d4a742;
}

.hero-btn-primary:hover {
    background: linear-gradient(180deg, #ffe08a, #d4a742);
}

.hero-btn-secondary {
    color: var(--gld-parchment);
    background: rgb(0 0 0 / 0.25);
    border-color: rgb(255 204 102 / 0.35);
}

.hero-btn-secondary:hover {
    border-color: var(--gld-gold);
    color: #fff8cf;
}

.hero-visual {
    background: #0e0a06;
    border-left: 1px solid rgb(135 110 62 / 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.hero-showcase {
    position: relative;
    width: 100%;
    min-height: min(84vh, 820px);
    padding: 1.1rem 1.35rem;
    cursor: pointer;
}

.hero-showcase-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(78vh, 760px);
    object-fit: contain;
    border-radius: var(--gld-radius-sm);
    border: 1px solid rgb(135 110 62 / 0.35);
    box-shadow: 0 12px 32px rgb(0 0 0 / 0.45);
    transition: opacity 0.9s ease-in-out;
}

.hero-showcase-img:not(.is-active) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.hero-showcase-img.is-active {
    position: relative;
    opacity: 1;
}

.hero-showcase-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    z-index: 2;
}

.hero-showcase-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.25);
    border: 1px solid rgb(255 204 102 / 0.35);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.hero-showcase-dots button:hover {
    background: rgb(255 204 102 / 0.45);
    transform: scale(1.15);
}

.hero-showcase-dots button.is-active {
    background: var(--gld-gold);
    border-color: var(--gld-gold);
}

/* Shared panels */
.video-panel,
.contact-panel,
.country-panel {
    background: linear-gradient(165deg, #2a1a0e 0%, #1f160e 100%);
    border: 2px solid var(--gld-border);
    border-radius: var(--gld-radius);
    padding: 1.5rem;
    box-shadow: var(--gld-shadow);
    width: 100%;
}

.video-panel {
    max-width: 1100px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

.tutorial-header {
    margin-bottom: 1.25rem;
}

.tutorial-lead {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgb(244 228 193 / 0.78);
    max-width: 52rem;
}

.tutorial-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 1.25rem;
    align-items: start;
}

.tutorial-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.tutorial-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tutorial-nav-label {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgb(255 204 102 / 0.65);
}

.tutorial-nav-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    text-align: left;
    font-family: inherit;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--gld-parchment);
    background: rgb(0 0 0 / 0.22);
    border: 1px solid rgb(255 204 102 / 0.2);
    border-radius: var(--gld-radius-sm);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tutorial-nav-item:hover {
    border-color: rgb(255 204 102 / 0.45);
    background: rgb(0 0 0 / 0.32);
}

.tutorial-nav-item.is-active {
    border-color: var(--gld-gold);
    background: linear-gradient(180deg, rgb(186 151 0 / 0.22), rgb(0 0 0 / 0.28));
    color: #fff8cf;
}

.tutorial-nav-item-title {
    flex: 1;
}

.tutorial-nav-badge {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.08);
    color: rgb(244 228 193 / 0.55);
}

.tutorial-nav-badge.is-live {
    background: rgb(34 197 94 / 0.15);
    color: #86efac;
}

.tutorial-player-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.tutorial-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 2px solid var(--gld-border);
    border-radius: var(--gld-radius-sm);
    background: #000;
    overflow: hidden;
}

.tutorial-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.tutorial-placeholder,
.tutorial-link-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(165deg, #1a1208, #0f0a06);
    color: var(--gld-parchment);
}

.tutorial-placeholder i,
.tutorial-link-card i {
    font-size: 2rem;
    color: var(--gld-gold);
    opacity: 0.85;
}

.tutorial-placeholder-note,
.tutorial-link-desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgb(244 228 193 / 0.72);
    max-width: 28rem;
}

.tutorial-external-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.35rem;
    padding: 0.65rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff8cf;
    text-decoration: none;
    background: linear-gradient(180deg, rgb(26 115 232 / 0.35), rgb(0 0 0 / 0.35));
    border: 1px solid rgb(66 133 244 / 0.55);
    border-radius: var(--gld-radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tutorial-external-btn:hover {
    border-color: rgb(110 168 254 / 0.9);
    box-shadow: 0 0 14px rgb(66 133 244 / 0.2);
}

.tutorial-detail {
    padding: 0.15rem 0.1rem 0;
}

.tutorial-category {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgb(255 204 102 / 0.7);
    margin-bottom: 0.35rem;
}

.tutorial-title {
    margin: 0 0 0.5rem;
    font-family: var(--gld-font-display);
    font-size: 1.15rem;
    color: #fff8cf;
}

.tutorial-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgb(244 228 193 / 0.82);
}

.tutorial-desc code {
    font-size: 0.84em;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgb(0 0 0 / 0.35);
    border: 1px solid rgb(255 204 102 / 0.2);
}

.video-panel .frame {
    width: 100%;
    max-width: 980px;
    height: auto;
    max-height: min(48vh, 400px);
    aspect-ratio: 16 / 10;
    border: 2px solid var(--gld-border);
    border-radius: var(--gld-radius-sm);
    background: #000;
}

.contact-panel {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem;
}

.video-panel h2,
.contact-panel h2,
.country-panel h2 {
    font-family: var(--gld-font-display);
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--gld-gold);
}

.video-panel h2 i { margin-right: 0.4rem; }

.contact-panel h2 { text-align: center; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gld-text-muted);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
#country-select {
    width: 100%;
    padding: 0.72rem 0.85rem;
    font-family: inherit;
    font-size: 0.94rem;
    color: var(--gld-parchment);
    background: var(--gld-bg-input);
    border: 1px solid var(--gld-border);
    border-radius: var(--gld-radius-sm);
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
#country-select:focus {
    outline: none;
    border-color: var(--gld-gold);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.attach-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    color: var(--gld-gold);
    cursor: pointer;
}

#attachment-message {
    display: none;
    font-size: 0.8rem;
    color: #a7d98a;
}

.btn-primary,
#submit-button {
    padding: 0.72rem 1.45rem;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: var(--gld-font-display);
    color: #1a1008;
    background: linear-gradient(180deg, #ffcc66, #ba9700);
    border: 1px solid #d4a742;
    border-radius: var(--gld-radius-sm);
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

.btn-primary:hover,
#submit-button:hover {
    opacity: 0.92;
    background: linear-gradient(180deg, #ffe08a, #d4a742);
}

.btn-primary:active,
#submit-button:active { transform: scale(0.98); }

.country-panel {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.country-panel .subtitle {
    color: var(--gld-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.country-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.flag-icon { font-size: 1.75rem; }

#country-select {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    cursor: pointer;
    max-height: 200px;
}

#country-select option {
    background: var(--gld-bg-panel);
    color: var(--gld-text);
}

#submit-button {
    padding: 0.65rem 1.25rem;
    font-size: 0.92rem;
}

/* Alert toast */
.site-alert {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 420px;
    width: calc(100% - 2rem);
    padding: 1.25rem 1.5rem;
    border-radius: var(--gld-radius);
    font-size: 0.94rem;
    text-align: center;
    z-index: 1000;
    box-shadow: var(--gld-shadow);
    border: 2px solid var(--gld-border);
}

.site-alert.is-success {
    background: #1a2a14;
    border-color: rgb(74 124 42 / 0.55);
    color: #c8f0a0;
}

.site-alert.is-error {
    background: #2a1414;
    border-color: rgb(139 34 34 / 0.55);
    color: #f0b0b0;
}

.site-alert.is-waiting {
    background: var(--gld-bg-panel);
    color: var(--gld-text-muted);
}

.site-alert button {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.85rem;
    border: 1px solid var(--gld-border);
    border-radius: var(--gld-radius-sm);
    background: rgb(0 0 0 / 0.25);
    color: var(--gld-parchment);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        border-right: none;
        border-bottom: 1px solid rgb(135 110 62 / 0.45);
    }

    .hero-visual { order: -1; border-left: none; }

    .hero-showcase { min-height: 340px; }

    .tutorial-layout {
        grid-template-columns: 1fr;
    }

    .tutorial-nav {
        max-height: none;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tutorial-nav-group {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    :root { --sidebar-w: 100%; }

    body.app { flex-direction: column; }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 0.75rem;
    }

    .sidebar-brand {
        flex-direction: row;
        width: 100%;
        border-bottom: none;
        padding-bottom: 0.5rem;
        margin-bottom: 0;
        justify-content: space-between;
    }

    .sidebar-brand img.sidebar-logo-full { max-width: 200px; }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        flex: unset;
    }

    .sidebar button, .sidebar .sidebar-link {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
        font-size: 0.78rem;
        padding: 0.55rem;
    }

    .sidebar-footer-links {
        flex-direction: row;
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .site-main {
        margin-left: 0;
        padding: 1rem;
    }
}

/* =============================================================================
   Legal pages (privacy, etc.)
   ============================================================================= */

body.legal-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 45% at 15% 0%, rgb(186 151 0 / 0.1), transparent 55%),
        radial-gradient(ellipse 50% 35% at 95% 100%, rgb(92 58 28 / 0.15), transparent 50%),
        linear-gradient(180deg, #1a120a 0%, #0e0a06 100%);
}

body.legal-page::before { display: none; }

.legal-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3.5rem;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    color: #dacfa2;
    text-decoration: none;
    font-size: 0.85rem;
}

.legal-back:hover { color: var(--gld-gold); }

.legal-header {
    margin-bottom: 1.75rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(180deg, #5c3a1c 0%, #3d2814 55%, #2a1a0e 100%);
    border: 2px solid var(--gld-border);
    border-radius: var(--gld-radius);
    box-shadow: var(--gld-shadow);
}

.legal-brand-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.legal-brand-row img.legal-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgb(0 0 0 / 0.4));
}

.legal-brand-text { flex: 1; min-width: 0; }

.legal-brand-label {
    font-family: var(--gld-font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gld-gold);
    margin-bottom: 0.25rem;
}

.legal-header h1 {
    font-family: var(--gld-font-display);
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 700;
    color: var(--gld-parchment-light);
    line-height: 1.2;
}

.legal-meta {
    color: #c9b896;
    font-size: 0.88rem;
    line-height: 1.5;
}

.legal-meta a {
    color: var(--gld-gold);
    text-decoration: none;
}

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

.legal-lang-switch {
    display: inline-flex;
    gap: 0.3rem;
    margin-top: 1rem;
    padding: 0.2rem;
    background: rgb(0 0 0 / 0.25);
    border: 1px solid rgb(255 204 102 / 0.25);
    border-radius: 999px;
}

.legal-lang-switch button {
    border: none;
    background: transparent;
    color: #b8a882;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.legal-lang-switch button.is-active {
    background: rgb(255 204 102 / 0.18);
    color: var(--gld-gold);
}

.legal-notice {
    background: linear-gradient(90deg, rgb(92 58 28 / 0.55), rgb(61 40 20 / 0.45));
    border: 1px solid rgb(255 204 102 / 0.28);
    border-radius: var(--gld-radius-sm);
    padding: 1rem 1.15rem;
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
    color: #ebe0c4;
    line-height: 1.55;
}

.legal-section {
    background: linear-gradient(180deg, #f4e4c1 0%, #ebe0c4 100%);
    border: 2px solid var(--gld-border);
    border-radius: var(--gld-radius-sm);
    padding: 1.2rem 1.35rem;
    margin-bottom: 0.85rem;
    color: #3d2a1a;
    box-shadow: 0 6px 18px rgb(0 0 0 / 0.2);
}

.legal-section h2 {
    font-family: var(--gld-font-display);
    font-size: 1.05rem;
    color: #5c3a1c;
    margin-bottom: 0.65rem;
}

.legal-section p,
.legal-section li {
    color: #4a3528;
    font-size: 0.92rem;
    line-height: 1.6;
}

.legal-section p { margin-bottom: 0.65rem; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0.4rem 0 0.65rem 1.2rem; }
.legal-section li { margin: 0.3rem 0; }

.legal-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.65rem 0;
    font-size: 0.88rem;
}

.legal-section th,
.legal-section td {
    border: 1px solid #c9a66b;
    padding: 0.5rem 0.65rem;
    text-align: left;
    vertical-align: top;
}

.legal-section th {
    background: #dacfa2;
    color: #3d2a1a;
    font-weight: 700;
}

.legal-section a {
    color: #7a4e26;
    font-weight: 600;
}

.legal-footer {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(135 110 62 / 0.45);
    color: #b8a882;
    font-size: 0.86rem;
    line-height: 1.55;
}

.legal-footer a {
    color: var(--gld-gold);
    text-decoration: none;
}

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

[data-lang-panel] { display: none; }
[data-lang-panel].is-visible { display: block; }
