/*
 * PlacePal dark-editorial page system
 * Shared stylesheet consumed by: privacy.html, terms.html, beta.html
 * Typography: Source Serif 4 (body/headings) + Urbanist (UI chrome)
 * Palette: asset-catalog-sourced dark mode tokens + PlacePal orange accent
 *
 * Page-specific styles (e.g., services-table on privacy) stay inline in the page.
 */

:root {
    color-scheme: dark only;
    --bg: #1C1C1E;
    --card-bg: #1D1D1F;
    --text: rgba(255, 255, 255, 0.9);
    --text-soft: rgba(255, 255, 255, 0.7);
    --accent: #EA6E50;
    --accent-hover: #F28068;
    --border: rgba(255, 255, 255, 0.1);
    --table-head-bg: rgba(255, 255, 255, 0.05);
    --zebra-bg: rgba(255, 255, 255, 0.03);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Source Serif 4', Georgia, serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 17px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.site-header {
    padding: 18px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--card-bg);
}

.site-header a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--accent);
    text-decoration: none;
}

.site-header img {
    width: 36px;
    height: 36px;
}

main {
    flex: 1;
    padding: 64px 32px 80px;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}

article > header {
    margin-bottom: 32px;
}

h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 1.15;
    color: var(--accent);
    margin-bottom: 18px;
    letter-spacing: -0.005em;
}

.meta {
    font-family: 'Urbanist', sans-serif;
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.6;
}

.meta strong {
    color: var(--text);
    font-weight: 700;
}

.intro {
    margin-top: 20px;
    margin-bottom: 16px;
}

.contact-line {
    font-family: 'Urbanist', sans-serif;
    font-size: 15px;
    margin-bottom: 0;
}

.meta .secondary {
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 400;
}

hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

section {
    margin-bottom: 44px;
}

section + section {
    border-top: 1px solid var(--border);
    padding-top: 44px;
}

h2 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text);
}

h3 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 19px;
    line-height: 1.4;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--text);
}

p { margin-bottom: 16px; }

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

ul {
    padding-left: 24px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 12px;
}

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

li::marker {
    color: var(--accent);
}

strong { font-weight: 600; color: var(--text); }

a,
a:visited {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

code {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text);
}

.signoff {
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 20px;
    color: var(--text-soft);
    text-align: left;
    margin: 40px 0 0;
}

.site-footer {
    padding: 40px 32px 48px;
    border-top: 1px solid var(--border);
    text-align: center;
    background: var(--card-bg);
}

.footer-nav {
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    margin-bottom: 18px;
}

.footer-nav a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--accent, #EA6E50); }

.footer-nav .sep {
    color: var(--text-dim, rgba(255, 255, 255, 0.4));
    margin: 0 10px;
}

.built-by, .copyright {
    font-family: 'Urbanist', sans-serif;
    font-size: 12px;
    color: var(--text-dim, rgba(255, 255, 255, 0.4));
}

.footer-tagline {
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    color: var(--accent, #EA6E50);
    margin-bottom: 24px;
    letter-spacing: -0.005em;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    color: var(--text-soft, rgba(255, 255, 255, 0.7));
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    text-decoration: none;
}

.social-icon-link svg { width: 14px; height: 14px; fill: currentColor; }
.social-icon-link.youtube-icon svg { width: 16px; height: 16px; }

.social-icon-link:hover {
    background: rgba(234, 110, 80, 0.1);
    border-color: var(--accent, #EA6E50);
    color: var(--accent, #EA6E50);
}

@media (max-width: 640px) {
    main { padding: 44px 20px 64px; }
    h1 { font-size: 34px; }
    h2 { font-size: 24px; }
    h3 { font-size: 17px; }
    body { font-size: 16px; }
    .site-header { padding: 14px 20px; }
    .site-header a { font-size: 20px; }
    .site-header img { width: 32px; height: 32px; }
    .site-footer { padding: 32px 20px 40px; }
}

@media (min-width: 1200px) {
    main { max-width: 800px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
