:root {
    --ug-black: #111111;
    --ug-yellow: #fcd116;
    --ug-red: #ce1126;
    --ug-red-dark: #a10d1d;
    --bg-body: #f4f7f6;
    --bg-card: #ffffff;
    --text-dark: #202124;
    --text-muted: #5f6368;
    --border-radius: 8px;
}

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

body {
    font-family: system-ui, -apple-system, Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.5;
    padding-bottom: 2rem;
}

header {
    background-color: var(--ug-black);
    color: var(--ug-yellow);
    padding: 1rem;
    text-align: center;
    border-bottom: 3px solid var(--ug-red);
}

header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

header h2 a { color: inherit; text-decoration: none; }

.trust-badge {
    font-size: 0.8rem;
    color: var(--ug-yellow);
    background: rgba(252, 209, 22, 0.1);
    border: 1px solid rgba(252, 209, 22, 0.4);
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}

main { max-width: 500px; margin: 0 auto; padding: 1rem; }

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.25rem 0 1rem;
    padding: 0.45rem 0.8rem;
    color: var(--ug-black);
    background: var(--bg-card);
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
}

.home-link:active { background: #eceff1; transform: translateY(1px); }

.page-header { text-align: center; margin: 0.5rem 0 1.5rem; }
.page-header h1 {
    font-size: 1.3rem;
    color: var(--ug-black);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.page-header p { font-size: 0.9rem; color: var(--text-muted); }

.last-updated {
    display: inline-block;
    margin-top: 0.7rem;
    padding: 0.2rem 0.6rem;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
}

.content-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.2rem 1rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.content-card h2 {
    color: var(--ug-black);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.content-card h3 {
    color: var(--ug-black);
    font-size: 0.92rem;
    font-weight: 800;
    margin: 0.9rem 0 0.35rem;
}

.content-card p,
.content-card li {
    color: #555;
    font-size: 0.85rem;
}

.content-card p + p { margin-top: 0.7rem; }
.content-card ul,
.content-card ol { padding-left: 1.2rem; margin-top: 0.55rem; }
.content-card li + li { margin-top: 0.45rem; }

.content-card a,
.text-link {
    color: var(--ug-red-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.notice-card { border-left: 4px solid var(--ug-yellow); }
.warning-card { border-left: 4px solid var(--ug-red); }

.button-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin: 1.5rem 0;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.7rem 1.1rem;
    border-radius: 22px;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
}

.btn-primary { color: var(--ug-yellow); background: var(--ug-black); }
.btn-secondary { color: var(--ug-black); background: #fff; border: 1px solid #ccc; }
.btn-primary:active,
.btn-secondary:active { transform: translateY(1px); }

.contact-email {
    display: block;
    margin-top: 0.75rem;
    color: var(--ug-red-dark);
    font-size: 1rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.error-panel {
    padding: 2rem 1rem;
    text-align: center;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.error-code {
    color: var(--ug-red);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
}

.error-panel h1 {
    margin: 0.6rem 0 0.5rem;
    color: var(--ug-black);
    font-size: 1.35rem;
}

.error-panel > p:not(.error-code) { color: var(--text-muted); font-size: 0.9rem; }

footer { text-align: center; margin-top: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1.2rem; }
.footer-links a { color: #666; text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.footer-links a:active { color: var(--ug-red); }
.footer-copyright { font-size: 0.8rem; color: #888; font-weight: 500; }
.age-limit { font-weight: bold; border: 2px solid #888; padding: 2px 5px; border-radius: 3px; margin-right: 5px; color: var(--ug-black); }

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--ug-yellow);
    outline-offset: 3px;
}

@media (max-width: 380px) {
    .button-row { flex-direction: column; }
    .btn-primary,
    .btn-secondary { width: 100%; }
}
