/* Legends of Glory — Legal Pages (Datenschutz, Widerruf, …) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html.legal-page,
html.legal-page body {
    min-height: 100%;
    min-height: 100dvh;
}

body.legal-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    color: #e8dcc8;
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background: #050505;
    background-image: url('/public/assets/images/bg_arena.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.legal-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 70% at 50% 100%, rgba(0, 0, 0, 0.75) 0%, transparent 58%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
    z-index: 0;
}

.legal-page .content-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 820px;
    max-height: min(80vh, 860px);
    overflow-y: auto;
    padding: clamp(24px, 4vw, 40px);
    border-radius: 16px;
    border: 1px solid rgba(201, 169, 98, 0.38);
    background:
        linear-gradient(165deg, rgba(255, 248, 235, 0.06) 0%, transparent 40%),
        rgba(8, 6, 4, 0.88);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 169, 98, 0.55) rgba(0, 0, 0, 0.35);
}

.legal-page .content-box::-webkit-scrollbar { width: 8px; }
.legal-page .content-box::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.35); }
.legal-page .content-box::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 98, 0.45);
    border-radius: 999px;
}

.legal-page h1,
.legal-page h2 {
    font-family: 'Cinzel', Georgia, serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.legal-page h1 {
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 169, 98, 0.28);
    font-size: clamp(1.05rem, 3vw, 1.4rem);
    line-height: 1.35;
    color: #e8d088;
}

.legal-page h2 {
    margin: 24px 0 10px;
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    color: #c9a962;
}

.legal-page h3 {
    margin: 18px 0 8px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: #d4b86a;
}

.legal-page h4 {
    margin: 14px 0 8px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: #e8d088;
}

.legal-page p,
.legal-page ul {
    line-height: 1.62;
    margin-bottom: 14px;
    font-size: clamp(0.82rem, 2vw, 0.88rem);
    color: rgba(232, 220, 200, 0.92);
}

.legal-page ul { margin-left: 1.15em; }
.legal-page li { margin-bottom: 8px; }

.legal-page a {
    color: #e8d088;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-page a:hover {
    color: #fff;
    text-decoration: underline;
}

.legal-page .stand {
    margin-bottom: 18px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(201, 169, 98, 0.72);
}

.legal-page .notice {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 98, 0.28);
    background: rgba(201, 169, 98, 0.08);
}

.legal-page .notice p:last-child,
.legal-page .notice ul:last-child {
    margin-bottom: 0;
}

.legal-page .form-box {
    margin-top: 12px;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 98, 0.22);
    background: rgba(0, 0, 0, 0.32);
    white-space: pre-line;
    font-size: clamp(0.8rem, 1.9vw, 0.86rem);
    line-height: 1.62;
    color: rgba(232, 220, 200, 0.9);
}

.legal-page .back-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 11px 22px;
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 98, 0.38);
    background: rgba(0, 0, 0, 0.35);
    color: #e8d088;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.legal-page .back-link:hover {
    background: rgba(201, 169, 98, 0.14);
    color: #fff;
    text-decoration: none;
}

.legal-page .source-info {
    margin-top: 28px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: rgba(201, 169, 98, 0.55);
}

.legal-page--impressum .content-box {
    max-width: 640px;
    text-align: center;
}

.legal-page--impressum h2 {
    margin-top: 28px;
}

.legal-page.legal-page--embed,
.legal-page.legal-page--embed body {
    height: 100%;
    overflow: hidden;
    background: #0a0806;
    background-image: none;
}

.legal-page.legal-page--embed body::before {
    display: none;
}

.legal-page.legal-page--embed .content-box {
    max-width: none;
    max-height: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #0a0806;
    padding: 18px 20px 24px;
}

.legal-page.legal-page--embed .back-link {
    display: none;
}
