/* Shared styles for the informational pages (about, contact, privacy, terms).
   Token names mirror index.html so the theme carries across pages. */
:root {
    --bg-body: #f1f5f9;
    --bg-tool: #ffffff;
    --text-primary: #0b1c2f;
    --text-secondary: #1e293b;
    --text-muted: #475569;
    --border-color: #d1d9e6;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    --btn-bg: #f1f5f9;
    --btn-text: #1e293b;
    --btn-hover: #e2e8f0;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --code-bg: #eef2ff;
    --code-text: #2563eb;
    --notice-bg: #eef2ff;
    --notice-border: #c7d2fe;
}

body.dark {
    --bg-body: #0f172a;
    --bg-tool: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    --btn-bg: #334155;
    --btn-text: #e2e8f0;
    --btn-hover: #475569;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --code-bg: #1e3a5f;
    --code-text: #60a5fa;
    --notice-bg: #172554;
    --notice-border: #1e40af;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    padding: 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.25s, color 0.25s;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.75rem;
    transition: border-color 0.25s;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    text-decoration: none;
}
.logo span { color: var(--primary); }

.theme-toggle {
    background: var(--btn-bg);
    border: none;
    border-radius: 40px;
    padding: 0.4rem 0.9rem;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--btn-text);
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}
.theme-toggle:hover { background: var(--btn-hover); }

main {
    background: var(--bg-tool);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    transition: background 0.25s, box-shadow 0.25s;
}

.back {
    margin-bottom: 1.4rem;
    font-size: 0.92rem;
}
.back a { color: var(--text-muted); font-weight: 600; }
.back a:hover { color: var(--primary); }

h1 {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2.25rem 0 0.7rem;
}

h3 {
    font-size: 1.02rem;
    font-weight: 650;
    margin: 1.5rem 0 0.4rem;
}

p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.98rem;
    margin-bottom: 0.85rem;
}

ul, ol {
    padding-left: 1.5rem;
    margin: 0 0 1.1rem;
}
li {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.98rem;
    margin-bottom: 0.45rem;
}

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

code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.88em;
    background: var(--code-bg);
    color: var(--code-text);
    padding: 0.1rem 0.38rem;
    border-radius: 5px;
}

.notice {
    background: var(--notice-bg);
    border: 1px solid var(--notice-border);
    border-radius: 0.75rem;
    padding: 1.1rem 1.3rem;
    margin: 1.5rem 0;
}
.notice p:last-child { margin-bottom: 0; }

.mailbox {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1.15rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 40px;
    margin: 0.5rem 0 1.25rem;
}
.mailbox:hover {
    background: var(--primary-hover);
    text-decoration: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1.25rem;
    font-size: 0.92rem;
}
th, td {
    text-align: left;
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: top;
}
th { font-weight: 650; color: var(--text-primary); }

footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: border-color 0.25s;
}
footer a { color: var(--primary); }
footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    body { padding: 0.75rem; }
    main { padding: 1.25rem; }
    h1 { font-size: 1.65rem; }
    .logo { font-size: 1.4rem; }
}
