:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

a,
li,
strong {
    font-family: 'Inter', sans-serif;
}

.doc-hero {
    position: relative;
    height: 45vh;
    min-height: 330px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 48px 24px;
    overflow: hidden;
}

.doc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62) 62%, #000);
}

.doc-title {
    position: relative;
    z-index: 2;
    text-align: center;
}

.doc-title h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.doc-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 54px 24px 90px;
}

/* The same glass-card treatment used on the main About and More pages. */
.glass-card {
    padding: 32px;
    border: 1px solid #1f2937;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(4px);
    transition: box-shadow 0.5s;
}

.glass-card:hover {
    box-shadow: 0 10px 15px -3px rgba(250, 204, 21, 0.1);
}

.doc-content {
    line-height: 1.625;
}

.doc-content h2 {
    margin: 36px 0 12px;
    color: #facc15;
    font-size: 1.25rem;
    font-weight: 700;
}

.doc-content h2:first-child {
    margin-top: 0;
}

.doc-content p {
    margin: 0 0 16px;
    color: #d1d5db;
    line-height: 1.625;
}

.doc-content ul {
    margin: 8px 0 20px 24px;
    padding: 0;
    color: #d1d5db;
}

.doc-content li {
    margin-bottom: 8px;
    padding-left: 4px;
    line-height: 1.625;
}

.doc-content a {
    color: #facc15;
    font-weight: 700;
}

.doc-content a:hover {
    text-decoration: underline;
}

.doc-content strong {
    color: #fff;
}

.footer-frame {
    display: block;
    width: 100%;
    height: 330px;
    border: 0;
    background: #000;
    color-scheme: dark;
}

@media (max-width: 720px) {
    .doc-container {
        padding-top: 30px;
    }

    .glass-card {
        padding: 24px;
    }

    .footer-frame {
        height: 520px;
    }
}
