/* ============================================================
   FYTA Legal Pages — Monochrome Theme
   Design System: Black/White/Gray + FYTA brand accent (orange→violet)
   Color tokens from globals.css / STYLE_GUIDE.md
   ============================================================ */

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 40px 20px;
    background: #0a0a0a; /* gray-950 */
    color: #c8c8c8; /* ~gray-300 */
    min-height: 100vh;
}

/* Container — elevation-3 card */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: #1a1a1a; /* gray-850 */
    padding: 50px 45px;
    border-radius: 12px;
    border: 1px solid #2e2e2e; /* gray-700 */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Top decorative gradient bar — FYTA brand orange→violet, fade both ends */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        hsl(16 100% 55% / 0.15) 8%,
        hsl(16 100% 55% / 0.5) 18%,
        hsl(16 100% 55%) 30%,
        hsl(268 85% 55%) 70%,
        hsl(268 85% 55% / 0.5) 82%,
        hsl(268 85% 55% / 0.15) 92%,
        transparent 100%
    );
}

/* Remove the old side accent line */
.container::after {
    display: none;
}

/* ---- Typography ---- */

h1 {
    color: #fafafa; /* gray-50 — foreground */
    border-bottom: none;
    padding-bottom: 20px;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 2.4em;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        hsl(16 100% 55% / 0.15) 8%,
        hsl(16 100% 55% / 0.5) 18%,
        hsl(16 100% 55%) 30%,
        hsl(268 85% 55%) 70%,
        hsl(268 85% 55% / 0.5) 82%,
        hsl(268 85% 55% / 0.15) 92%,
        transparent 100%
    );
    border-radius: 2px;
}

h2 {
    color: #fafafa; /* gray-50 */
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
    border-left: none;
    padding-left: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg,
        transparent 0%,
        hsl(16 100% 55% / 0.15) 8%,
        hsl(16 100% 55% / 0.5) 18%,
        hsl(16 100% 55%) 30%,
        hsl(268 85% 55%) 70%,
        hsl(268 85% 55% / 0.5) 82%,
        hsl(268 85% 55% / 0.15) 92%,
        transparent 100%
    );
    border-radius: 2px;
    flex-shrink: 0;
}

h2 > strong:first-child,
h2 span.number,
h2 strong {
    font-weight: 700;
}

h3 {
    color: #ededed; /* gray-100 */
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: 600;
    padding-left: 18px;
    position: relative;
}

h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle,
        hsl(16 100% 55%) 15%,
        hsl(16 100% 55% / 0.5) 35%,
        hsl(16 100% 55% / 0.15) 60%,
        transparent 85%
    );
    border-radius: 50%;
}

h3 span.number,
h3 strong {
    font-weight: 600;
}

span.number {
    font-weight: 600;
    color: inherit; /* same as parent — no special color for numbers */
}

strong {
    color: #fafafa; /* gray-50 */
    font-weight: 600;
}

/* ---- Links — fyta-orange accent ---- */
a {
    color: hsl(16 100% 60%); /* fyta-orange */
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: hsl(16 100% 70%);
    border-bottom-color: hsl(16 100% 70%);
    text-decoration: none;
}

/* ---- Date Info Box ---- */
.date-info {
    background: #212121; /* gray-800 */
    padding: 18px 24px;
    border-radius: 8px;
    margin: 25px 0 35px 0;
    border: 1px solid #2e2e2e; /* gray-700 */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.date-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
        transparent 0%,
        hsl(16 100% 55% / 0.15) 8%,
        hsl(16 100% 55% / 0.5) 18%,
        hsl(16 100% 55%) 30%,
        hsl(268 85% 55%) 70%,
        hsl(268 85% 55% / 0.5) 82%,
        hsl(268 85% 55% / 0.15) 92%,
        transparent 100%
    );
}

.date-info strong {
    color: #8c8c8c; /* gray-400 — muted label */
}

/* ---- Important Notice Box ---- */
.important {
    background: #1f1414; /* subtle red-tinted dark */
    padding: 20px 24px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: #d9d9d9; /* gray-200 */
    position: relative;
    overflow: hidden;
}

.important::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
        transparent 0%,
        hsl(0 72% 51% / 0.15) 8%,
        hsl(0 72% 51% / 0.5) 18%,
        hsl(0 72% 51%) 30%,
        hsl(0 72% 51%) 70%,
        hsl(0 72% 51% / 0.5) 82%,
        hsl(0 72% 51% / 0.15) 92%,
        transparent 100%
    );
}

.important p {
    margin: 0;
}

.important strong {
    color: hsl(0 72% 65%);
}

/* ---- Paragraphs ---- */
p {
    margin: 16px 0;
    color: #b3b3b3; /* gray-300 — muted-foreground */
}

/* ---- Lists ---- */
ul {
    padding-left: 0;
    list-style: none;
    margin: 16px 0;
}

ul li {
    margin-bottom: 14px;
    color: #b3b3b3; /* gray-300 */
    padding-left: 28px;
    position: relative;
    line-height: 1.7;
}

ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 11px;
    width: 5px;
    height: 5px;
    background: #666666; /* gray-500 */
    border-radius: 50%;
}

/* Nested lists */
ul ul {
    margin-top: 12px;
    margin-bottom: 12px;
    padding-left: 20px;
}

ul ul li::before {
    width: 4px;
    height: 4px;
    top: 12px;
    background: #404040; /* gray-600 */
}

ul ul ul li::before {
    width: 4px;
    height: 4px;
    border-radius: 0;
    transform: rotate(45deg);
    background: #404040; /* gray-600 */
}

/* ---- Section Dividers ---- */
.section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2e2e2e; /* gray-700 */
}

.section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Table of Contents styling */
.section h2:first-child {
    margin-top: 0;
}

/* Final thank you section */
.section:last-child p strong {
    display: block;
    text-align: center;
    padding: 20px;
    background: #212121; /* gray-800 */
    border-radius: 8px;
    border: 1px solid #2e2e2e; /* gray-700 */
    color: #8c8c8c; /* gray-400 */
    font-size: 1.05em;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #121212; /* gray-900 */
}

::-webkit-scrollbar-thumb {
    background: #404040; /* gray-600 */
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666666; /* gray-500 */
}

/* ---- Selection ---- */
::selection {
    background: rgba(255, 107, 26, 0.2); /* fyta-orange at 20% */
    color: #ffffff;
}

/* ---- Mobile Responsive ---- */
@media (max-width: 768px) {
    body {
        padding: 20px 12px;
    }

    .container {
        padding: 35px 24px;
        border-radius: 10px;
    }

    h1 {
        font-size: 1.8em;
        padding-bottom: 16px;
    }

    h1::after {
        width: 60px;
    }

    h2 {
        font-size: 1.3em;
        margin-top: 32px;
        gap: 10px;
    }

    h2::before {
        width: 3px;
        height: 18px;
    }

    h3 {
        font-size: 1.1em;
        padding-left: 16px;
    }

    h3::before {
        width: 5px;
        height: 5px;
    }

    .date-info {
        padding: 14px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .important {
        padding: 16px 18px;
    }

    ul li {
        padding-left: 24px;
    }

    ul li::before {
        left: 6px;
    }

    .section {
        margin-bottom: 30px;
        padding-bottom: 24px;
    }

    .section:last-child p strong {
        padding: 16px;
        font-size: 1em;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    body {
        padding: 12px 8px;
    }

    .container {
        padding: 28px 18px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1.05em;
    }
}

/* ---- Print ---- */
@media print {
    body {
        background: #ffffff;
        color: #000000;
        padding: 0;
    }

    .container {
        background: #ffffff;
        box-shadow: none;
        border: none;
        padding: 20px;
        max-width: 100%;
    }

    .container::before {
        display: none;
    }

    h1, h2, h3 {
        color: #000000;
    }

    h1::after,
    h2::before,
    h3::before {
        background: #333333;
    }

    a {
        color: #0066cc;
    }

    .date-info,
    .important {
        border: 1px solid #cccccc;
        background: #f5f5f5;
    }

    .date-info::before,
    .important::before {
        display: none;
    }

    .important strong {
        color: #cc0000;
    }

    ul li::before {
        background: #333333;
    }

    .section {
        border-bottom-color: #cccccc;
    }
}
