@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
    --bg: #0f2e34;
    --bg-soft: #123840;
    --primary: #1bb3a9;
    --primary-soft: rgba(27, 179, 169, 0.12);
    --text: #0f172a;
    --text-soft: #4a5568;
    --white: #ffffff;
    --muted: #e2e8f0;
    --max-width: 900px;
    --radius: 16px;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: linear-gradient(120deg, #f8fafc, #edf2f7);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.65;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.skip-link {
    position: fixed;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000;
}

.skip-link:focus {
    box-shadow: 0 0 0 4px rgba(27, 179, 169, 0.35);
}

.hero {
    background: linear-gradient(150deg, var(--bg), var(--bg-soft));
    color: var(--white);
    padding: 4.5rem 1.5rem 3.5rem;
}

.hero .container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.hero p {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs {
    margin-top: 2rem;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.breadcrumbs a,
.top-nav a,
.footer-links a {
    color: inherit;
    text-decoration: none;
    position: relative;
}

.breadcrumbs a::after,
.top-nav a::after,
.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.breadcrumbs a:focus-visible,
.top-nav a:focus-visible,
.footer-links a:focus-visible {
    outline: 2px dashed var(--primary);
    outline-offset: 4px;
}

.breadcrumbs a:hover::after,
.top-nav a:hover::after,
.footer-links a:hover::after {
    transform: scaleX(1);
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

main {
    flex: 1;
    padding: 3rem 1.5rem 4rem;
}

.legal-content {
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
}

.legal-content section+section {
    margin-top: 2rem;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--bg);
}

.legal-content p+p {
    margin-top: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin: 1rem 0 1rem 1.25rem;
    color: var(--text);
}

.legal-content li+li {
    margin-top: 0.4rem;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
    border: 1px solid var(--muted);
    padding: 0.75rem;
    text-align: left;
}

.legal-table thead {
    background: var(--primary);
    color: var(--white);
}

.notice {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--primary-soft);
    border: 1px solid rgba(27, 179, 169, 0.3);
    color: var(--bg);
}

.footer {
    border-top: 1px solid rgba(15, 46, 52, 0.08);
    padding: 2rem 1.5rem 3rem;
    background: #fefefe;
}

.footer .container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer small {
    color: var(--text-soft);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--bg);
}

@media (max-width: 640px) {
    .legal-content {
        padding: 1.75rem;
    }

    .top-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}