:root {
    color-scheme: dark;
    --deep-blue: #071554;
    --gradient-start: #091C60;
    --gradient-end: #0039BA;
    --amphi-gold: #EBA764;
    --sand-stone: #F4DAA7;
    --soft-white: #FFFBF4;
    --light-ocean: #14BAC9;
    --surface: rgba(255, 251, 244, .08);
    --surface-strong: rgba(255, 251, 244, .13);
    --border: rgba(255, 251, 244, .18);
    --text: var(--soft-white);
    --muted: rgba(255, 251, 244, .72);
    --accent: var(--light-ocean);
    --accent-strong: var(--amphi-gold);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
    background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
    color: var(--text);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer {
    width: 100%;
    padding-inline: max(16px, calc((100% - 1080px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--deep-blue);
    border-color: rgba(255, 251, 244, .12);
}

.site-header {
    min-height: 72px;
    border-bottom: 1px solid var(--border);
}

.brand {
    color: var(--text);
    font-weight: 700;
}

.main-nav,
.footer-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text);
    border: 1px solid rgba(235, 167, 100, .65);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(235, 167, 100, .12);
}

.main-nav a:hover {
    border-color: var(--amphi-gold);
    text-decoration: none;
}

.site-footer {
    min-height: 72px;
    color: rgba(255, 251, 244, .78);
    font-size: .92rem;
    border-top: 1px solid var(--border);
}

.footer-nav a {
    color: var(--sand-stone);
}

.maintenance-card {
    align-self: center;
    justify-self: center;
    width: min(720px, calc(100% - 32px));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 18px 42px rgba(7, 21, 84, .35);
    backdrop-filter: blur(10px);
}

.maintenance-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(20, 186, 201, .18);
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
}

.status-dot::after {
    content: "";
    position: absolute;
    inset: -60%;
    background: conic-gradient(from 90deg, transparent 0 60%, rgba(255, 255, 255, .35) 70%, transparent 85%);
    animation: spin 1.4s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    letter-spacing: 0;
}

h2 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--text);
}

p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 1rem;
}

.meta {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(7, 21, 84, .26);
}

.label {
    color: var(--muted);
}

.pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(244, 218, 167, .10);
    color: rgba(255, 251, 244, .90);
    font-size: .92rem;
    white-space: nowrap;
}

.pill .a {
    color: var(--accent-strong);
}

.legal-page {
    width: min(900px, calc(100% - 32px));
    margin: 32px auto 56px;
}

.legal-content {
    display: grid;
    gap: 12px;
}

.legal-content h1 {
    margin-bottom: 12px;
}

.legal-content h2 {
    margin-top: 18px;
}

.legal-content p {
    margin-bottom: 4px;
}

.legal-updated {
    color: rgba(255, 251, 244, .58);
}

@media (max-width: 640px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 16px;
    }

    .maintenance-card {
        padding: 22px;
    }
}
