/* ============================================================================
   DrafterPlus AI — Legal Pages Stylesheet
   Shared by /terms, /privacy, /developer-terms
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    --bg: #050505;
    --text: #e0e0e0;
    --text-secondary: #888;
    --text-muted: #555;
    --accent: #3b82f6;
    --accent-dim: rgba(59,130,246,0.08);
    --border: rgba(255,255,255,0.06);
    --surface: rgba(255,255,255,0.025);
    --card-glow: rgba(59,130,246,0.03);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Header ===== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    background: rgba(5,5,5,0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-logo svg { flex-shrink: 0; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 7px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s;
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface);
    text-decoration: none;
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-dim);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-left: 8px;
    transition: all 0.15s;
}

.back-link:hover {
    color: var(--text);
    background: var(--surface);
    border-color: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* ===== Main Content ===== */
main {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 32px 80px;
}

.page-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.page-badge.dev {
    color: #a855f7;
    background: rgba(168,85,247,0.08);
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.last-updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ===== Highlight Box ===== */
.highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--accent-dim);
    border: 1px solid rgba(59,130,246,0.12);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 48px;
}

.highlight-box svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}

.highlight-box p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.highlight-box a {
    color: var(--accent);
    text-decoration: none;
}

.highlight-box a:hover {
    text-decoration: underline;
}

/* ===== Sections ===== */
section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

h2 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

p:last-child { margin-bottom: 0; }

p strong { color: var(--text); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Lists ===== */
ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

ul li {
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-muted);
}

ul li strong {
    color: var(--text);
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 32px;
    border-top: 1px solid var(--border);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--text-secondary);
    text-decoration: none;
}

footer p {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 12px;
        padding: 14px 20px;
    }

    .header-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    .back-link { margin-left: 0; }

    main {
        padding: 40px 20px 60px;
    }

    h1 {
        font-size: 1.7rem;
    }

    .highlight-box {
        flex-direction: column;
        gap: 10px;
        padding: 16px 18px;
    }
}

@media (max-width: 414px) {
    main {
        padding: 32px 16px 48px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .nav-link, .back-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    section {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }
}
