/* Shared styles for Terms of Service and Privacy Policy. */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700&family=Outfit:wght@700&family=Space+Mono:wght@400;700&family=Syne:wght@700;800&display=swap');

:root {
    --bg-color: #FFFDF6; /* Warm premium cream */
    --text-color: #000000;
    --border-color: #000000;
    --card-bg: #FFFFFF;
    --shadow-color: #000000;
    --border-width: 3px;
    --radius-card: 8px;
    --radius-btn: 4px;
    --shadow: 5px 5px 0px var(--shadow-color);
    --shadow-hover: 2px 2px 0px var(--shadow-color);
    --shadow-active: 0px 0px 0px var(--shadow-color);

    /* Legal page palette */
    --color-yellow: #ffd000;
    --color-lavender: #C4B5FD;
    --color-mint: #A7F3D0;
    --color-coral: #FCA5A5;
    --color-blue: #BFDBFE;
    --color-white: #FFFFFF;
}


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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    padding: 0;
    overflow-x: hidden;
}

/* Typography pairing */
h1 {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 900;
    color: var(--text-color);
    line-height: 1.1;
    font-size: 3.2rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.15;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
    border-bottom: none;
    display: block;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    font-weight: 400;
}

a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.15s ease;
}

/* Document layout */
.subpage-container {
    max-width: 800px;
    margin-left: 5rem;
    margin-right: auto;
    padding: 3rem 1.5rem 3rem 0;
}

.doc-header {
    margin-bottom: 3.5rem;
    text-align: left;
}

@media (max-width: 1200px) {
    .subpage-container {
        margin: 0 auto;
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 900px) {
    h1 {
        font-size: 2.4rem;
    }
    h2 {
        font-size: 1.7rem;
    }
    .subpage-container {
        margin: 0 auto;
        padding: 2rem 1.25rem;
    }
}



/* Legal summary block */
.legal-summary {
    background-color: var(--color-yellow);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Section styling - Flat, Clean, Neubrutalist */
.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.legal-section {
    position: relative;
    scroll-margin-top: 120px;
    padding-bottom: 2rem;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.15);
}


.legal-section:last-child {
    border-bottom: none;
}

/* Neubrutalist section badges with Space Mono */
.section-badge {
    display: inline-flex;
    align-items: center;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--color-white);
    color: var(--text-color);
    box-shadow: 2px 2px 0px var(--shadow-color);
    margin-bottom: 1rem;
}

.legal-content {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 0.8rem;
}

.legal-content ul {
    list-style: none;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

.legal-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.legal-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--list-arrow-color, var(--color-yellow));
}

.privacy-page {
    --list-arrow-color: var(--color-signature-green);
}

/* Custom Highlight Box */
.highlight {
    background-color: var(--color-yellow);
    border: 2px solid var(--border-color);
    padding: 0.15rem 0.4rem;
    font-weight: 700;
    box-shadow: 2px 2px 0px var(--shadow-color);
    border-radius: 4px;
    display: inline-block;
    margin: 0 0.2rem;
}


html {
    scroll-behavior: smooth;
}

/* Footer structure */
.home-footer {
    border-top: var(--border-width) solid var(--border-color);
    padding: 2rem 0 1rem;
    margin-top: 4rem;
    text-align: center;
}

.copyright-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
}

.copyright-symbol {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Metro Navigation Scrollspy */
.metro-nav {
    --metro-row-height: clamp(30px, calc((100dvh - 180px) / 7), 58px);
    position: fixed;
    right: 5rem;
    top: 50%;
    transform: translateY(calc(-50% + 40px));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 90;
}

.metro-line {
    position: absolute;
    right: 9px; /* Centered on 22px dot */
    top: calc(var(--metro-row-height) * 1.5);
    bottom: calc(var(--metro-row-height) * 1.5);
    width: 4px;
    background-color: var(--border-color);
    z-index: 1;
}

.metro-nav.has-more-above .metro-line {
    top: calc(var(--metro-row-height) / 2);
}

.metro-nav.has-more-below .metro-line {
    bottom: calc(var(--metro-row-height) / 2);
}

.metro-window {
    position: relative;
    z-index: 2;
    height: calc(var(--metro-row-height) * var(--metro-visible-count, 5));
    overflow: hidden;
    padding-right: 6px;
    margin-right: -6px;
}

.metro-track {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transform: translateY(var(--metro-offset, 0px));
    transition: transform 280ms cubic-bezier(0.22, 0.68, 0, 1);
}

.metro-station {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.3rem;
    height: var(--metro-row-height);
    flex-shrink: 0;
    margin: 0;
    position: relative;
    z-index: 2;
    cursor: pointer;
    text-decoration: none;
}

.metro-more {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: var(--metro-row-height);
    border: 0;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    font: 700 20px/1 'Space Mono', monospace;
}

.metro-more[hidden] {
    display: flex;
    visibility: hidden;
}

.metro-more span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--bg-color);
    padding-bottom: 8px;
}

.metro-more:hover span {
    background: var(--text-color);
    color: var(--color-white);
}

.metro-station:focus-visible,
.metro-more:focus-visible {
    outline: 3px solid var(--border-color);
    outline-offset: 4px;
}

.metro-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    opacity: 0.5;
    transition: opacity 160ms linear, color 160ms linear;
    text-transform: uppercase;
}


.metro-dot {
    width: 22px;
    height: 22px;
    border: 3px solid var(--border-color);
    background-color: var(--bg-color);
    flex-shrink: 0;
    transition: background-color 160ms linear, box-shadow 160ms linear;
}

/* Hover styles */
.metro-station:hover .metro-label {
    opacity: 1;
    color: var(--text-color);
}

.metro-station:hover .metro-dot {
    background-color: var(--text-color);
}

/* Active styles */
.metro-station.active .metro-label {
    opacity: 1;
    color: var(--text-color);
}

.metro-station.active .metro-dot {
    background-color: var(--text-color) !important;
    box-shadow: 3px 3px 0 var(--color-signature-green);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .metro-track, .metro-label, .metro-dot { transition: none; }
}

/* Responsive: hide on smaller screens */
@media (max-width: 1200px) {
    .metro-nav {
        display: none;
    }
}
