/* legal.css - the Terms / Refund / Privacy / Contact pages (legal.php).
   A plain reading page in the site's colours: the night-sky background and the
   gold of the purchase button. Nothing here is used by the map. */

:root {
    --legal-bg: #0A0A1E;
    --legal-panel: #12122b;
    --legal-text: #e8e8f2;
    --legal-muted: #a8a8c0;
    --legal-gold: #ffd54d;
    --legal-rule: rgba(255, 255, 255, 0.12);
}

html, body {
    margin: 0;
    background: var(--legal-bg);
    color: var(--legal-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--legal-gold); }
a:hover { text-decoration: none; }

.legal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}

.legal-start { display: flex; align-items: center; gap: 12px; }
.legal-brand { display: block; line-height: 0; flex: none; }
.legal-brand img { width: 44px; height: 44px; display: block; }
.legal-back { text-decoration: none; font-weight: 700; }

.legal-langs { display: flex; gap: 10px; font-size: 14px; }
.legal-langs [aria-current] { color: var(--legal-muted); }

.legal-doc {
    max-width: 760px;
    margin: 0 auto 24px;
    padding: 24px 16px 32px;
    box-sizing: border-box;
    background: var(--legal-panel);
    border-radius: 10px;
}

.legal-doc h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.25; }
.legal-doc h2 { margin: 28px 0 8px; font-size: 19px; color: var(--legal-gold); }
.legal-updated { margin: 0 0 18px; color: var(--legal-muted); font-size: 14px; }
.legal-intro { font-size: 17px; }
.legal-doc ul { padding-left: 22px; }
.legal-doc li { margin: 6px 0; }
.legal-doc p, .legal-doc li { overflow-wrap: anywhere; }

.legal-seller {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--legal-rule);
    color: var(--legal-muted);
    font-size: 14px;
}

/* Pricing page: the price table and the way back to the map. */
.price-table {
    width: 100%;
    max-width: 420px;
    border-collapse: collapse;
    margin: 8px 0 18px;
    font-size: 16px;
}
.price-table th, .price-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--legal-rule);
    text-align: left;
}
.price-table thead th { color: var(--legal-muted); font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; }
.price-table tbody th { font-weight: 400; }
.price-table td { text-align: right; font-weight: 700; color: var(--legal-gold); white-space: nowrap; }
.price-table tr.black-hole th { font-style: italic; }
.price-table tr.sold-out th, .price-table tr.sold-out td { color: var(--legal-muted); }
.sold-out-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border: 1px solid var(--legal-rule);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 400;
    color: var(--legal-muted);
    vertical-align: 1px;
}

.pricing-cta { margin: 24px 0 4px; }
.pricing-cta-btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffe680, #ffcf33, #ffd54d);
    color: #4a3b00;
    font-weight: 700;
    text-decoration: none;
}
.pricing-cta-btn:hover { filter: brightness(1.05); }

/* The footer is shared with the map page; here it simply sits after the text. */
.site-legal-footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 16px 32px;
    box-sizing: border-box;
    text-align: center;
    font-size: 13px;
}
.site-legal-footer .sep { margin: 0 4px; color: var(--legal-muted); }
.site-legal-footer a { white-space: nowrap; }

@media (max-width: 600px) {
    .legal-doc { border-radius: 0; padding: 20px 16px 28px; }
    .legal-doc h1 { font-size: 24px; }
}
