/* ============================================================
   Reverio — shared styling for legal / utility pages
   (Terms of Service, Privacy Policy, Cookie Settings).
   Matches the homepage design system: Inter, pink brand
   (#e91e63), blur header, #2c3e50 footer, soft rounded cards.
   ============================================================ */

:root {
    --brand: #c2185b;
    --brand-dark: #ad1457;
    --brand-deep: #c2185b;
    --ink: #1a0f14;
    --body: #4b5563;
    --muted: #6b7280;
    --line: #ececf0;
    --bg: #fbf8fa;
    --card: #ffffff;
    --radius: 18px;
    --shadow: 0 12px 44px rgba(26, 15, 20, 0.07);
    --maxw: 1180px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--body);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

a { color: inherit; }

/* ---------- Header (mirrors homepage) ---------- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 15, 20, 0.05);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--brand); }

.btn-login {
    background: var(--brand);
    color: #fff !important;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    transition: transform 0.25s ease, background 0.25s ease;
}

.btn-login:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

/* CSS-only mobile menu (no JS dependency) */
.nav-toggle-cb { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
    transition: 0.3s ease;
}

/* ---------- Hero band ---------- */
.legal-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fdf2f7 100%);
    padding: 132px 0 56px;
    border-bottom: 1px solid var(--line);
}

.legal-hero::before,
.legal-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
}

.legal-hero::before {
    width: 420px; height: 420px;
    background: radial-gradient(circle, #f9a8d4 0%, transparent 70%);
    top: -180px; left: -120px;
}

.legal-hero::after {
    width: 460px; height: 460px;
    background: radial-gradient(circle, #fbcfe8 0%, transparent 70%);
    bottom: -260px; right: -160px;
}

.legal-hero .container { position: relative; z-index: 1; }

.breadcrumb {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 1.1rem;
    padding: 0.4rem 0.9rem;
    background: rgba(233, 30, 99, 0.08);
    border-radius: 999px;
}

.legal-hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.85rem;
}

.legal-hero .sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 560px;
}

.updated-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.6rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(26, 15, 20, 0.05);
}

.updated-pill .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

/* ---------- Layout: sticky TOC + content card ---------- */
.legal-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 48px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 56px 24px 90px;
}

.toc {
    position: sticky;
    top: 96px;
    align-self: start;
}

.toc-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
    padding-left: 0.9rem;
}

.toc a {
    display: block;
    padding: 0.5rem 0.9rem;
    border-left: 2px solid var(--line);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.toc a:hover {
    color: var(--brand);
    border-left-color: var(--brand);
    background: rgba(233, 30, 99, 0.04);
}

.legal-content {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 52px 56px;
}

/* Intro callout */
.intro-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.05), rgba(173, 20, 87, 0.05));
    border: 1px solid rgba(233, 30, 99, 0.15);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    margin-bottom: 2.5rem;
}

.intro-box .ib-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.intro-box p { margin: 0; color: #6b5560; font-size: 0.96rem; }

/* Section headings with number chips */
.legal-content section { scroll-margin-top: 96px; }

.legal-content h2 {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 2.75rem 0 1.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--line);
}

.legal-content section:first-of-type h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content h2 .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: rgba(233, 30, 99, 0.1);
    color: var(--brand);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 800;
}

.legal-content h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
    margin: 1.85rem 0 0.75rem;
}

.legal-content p { margin-bottom: 1rem; color: var(--body); }

.legal-content ul,
.legal-content ol {
    margin: 0.75rem 0 1.25rem;
    padding-left: 1.4rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--body);
    padding-left: 0.35rem;
}

.legal-content li::marker { color: var(--brand); }

.legal-content a { color: var(--brand); font-weight: 600; text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

/* Callout variants */
.callout {
    border-radius: 14px;
    padding: 1.3rem 1.5rem;
    margin: 1.75rem 0;
}

.callout p:last-child { margin-bottom: 0; }

.callout h3 { margin-top: 0; }

.callout-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}
.callout-brand h3 { color: #fff; }
.callout-brand p { color: rgba(255, 255, 255, 0.92); }

.callout-warn {
    background: #fff8ee;
    border: 1px solid #f6dca6;
    color: #8a6310;
}
.callout-warn p { color: #8a6310; }

.callout-info {
    background: #f7f8fa;
    border-left: 4px solid var(--brand);
}

/* Entity / contact data sheet (impressum-style) */
.contact-card {
    background: #fff;
    border: 1px solid #e6e6ec;
    border-radius: 10px;
    padding: 1.65rem 1.85rem;
    margin: 1.5rem 0;
}

.entity-caption {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.55rem;
}

.entity-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    padding-bottom: 1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid #eeeef2;
}

.entity-grid {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 0.7rem 1.6rem;
    align-items: baseline;
}

.entity-grid dt {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.entity-grid dd {
    margin: 0;
    color: var(--ink);
    font-size: 0.95rem;
}

.entity-grid dd a {
    color: var(--ink);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #cfcfd6;
    text-underline-offset: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.entity-grid dd a:hover {
    color: var(--brand);
    text-decoration-color: var(--brand);
}

@media (max-width: 480px) {
    .entity-grid { grid-template-columns: 1fr; gap: 0.1rem; }
    .entity-grid dt { margin-top: 0.7rem; }
    .entity-grid dt:first-child { margin-top: 0; }
}

/* Footer note (version / updated) */
.legal-footnote {
    margin-top: 2.5rem;
    padding: 1.1rem 1.3rem;
    background: #f7f8fa;
    border-radius: 12px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---------- Cookie settings page ---------- */
.cookie-intro {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.cookie-cats {
    display: grid;
    gap: 1.1rem;
    max-width: 820px;
    margin: 0 auto;
}

.cookie-cat {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 4px 18px rgba(26, 15, 20, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-cat:hover {
    border-color: rgba(233, 30, 99, 0.3);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.08);
}

.cookie-cat-body { flex: 1; }

.cookie-cat-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.cookie-cat-head h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.cookie-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brand);
    background: rgba(233, 30, 99, 0.09);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.cookie-cat p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    flex-shrink: 0;
    width: 50px;
    height: 28px;
    background: #d4d4d8;
    border-radius: 999px;
    cursor: pointer;
    border: none;
    transition: background 0.25s ease;
    margin-top: 2px;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease;
}

.cookie-toggle.active { background: var(--brand); }
.cookie-toggle.active::after { transform: translateX(22px); }

.cookie-toggle.disabled { opacity: 0.55; cursor: not-allowed; }

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    max-width: 820px;
    margin: 2.25rem auto 0;
}

.btn {
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 22px rgba(233, 30, 99, 0.28);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }

.btn-ghost {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: #c9c9d1; }

.cookie-saved {
    text-align: center;
    margin: 1.4rem auto 0;
    max-width: 820px;
    color: #16a34a;
    font-weight: 600;
    font-size: 0.92rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-saved.show { opacity: 1; }

/* ---------- Footer (mirrors homepage) ---------- */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f48fb1;
    margin-bottom: 0.75rem;
}

.footer-brand p { opacity: 0.8; font-size: 0.95rem; max-width: 280px; }

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #f48fb1;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--brand); }

.footer-impressum {
    text-align: center;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
}

.footer-bottom a { color: #f48fb1; text-decoration: none; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .legal-layout { grid-template-columns: 1fr; gap: 0; }
    .toc { display: none; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .site-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 0.5rem 0;
        box-shadow: 0 12px 30px rgba(26, 15, 20, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-toggle-cb:checked ~ .site-nav { max-height: 420px; }
    .site-nav a { padding: 0.85rem 24px; }
    .site-nav .btn-login {
        margin: 0.5rem 24px;
        text-align: center;
        box-shadow: none;
    }
    .nav-toggle { display: flex; }
    .legal-content { padding: 32px 22px; }
    .legal-content h2 { font-size: 1.25rem; }
    .legal-hero { padding: 116px 0 44px; }
    .cookie-cat { flex-direction: row; padding: 1.25rem; }
    .cookie-actions .btn { flex: 1; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .legal-layout { padding: 36px 18px 64px; }
}
