/* Shared dark-mode stylesheet for BrewYourCode legal & pricing pages. */

:root {
    --bg: #0d1117;
    --surface: #161b22;
    --border: #30363d;
    --text: #c9d1d9;
    --text-muted: #8b949e;
    --text-strong: #f0f6fc;
    --accent: #58a6ff;
    --accent-hover: #79c0ff;
    --table-stripe: #1c2229;
    --code-bg: #1f2937;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
                 "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body { padding: 48px 24px 96px; }

.legal-shell { max-width: 760px; margin: 0 auto; }

header.legal-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

header.legal-header h1 {
    font-size: 26px;
    font-weight: 600;
    margin: 0;
    color: var(--text-strong);
}

header.legal-header .lang-switch {
    font-size: 13px;
    color: var(--text-muted);
}

header.legal-header .lang-switch a {
    color: var(--accent);
    text-decoration: none;
}

header.legal-header .lang-switch a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

nav.legal-nav {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

nav.legal-nav a {
    color: var(--accent);
    text-decoration: none;
    margin-right: 16px;
}

nav.legal-nav a:hover { text-decoration: underline; }

h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 36px 0 12px;
    color: var(--text-strong);
}

h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 10px;
    color: var(--text-strong);
}

p { margin: 12px 0; font-size: 15px; }

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

a:hover { text-decoration: underline; }

ul, ol { padding-left: 22px; margin: 12px 0; }

li { font-size: 15px; margin: 4px 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

th, td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

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

tbody tr:nth-child(even) { background: var(--table-stripe); }

hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

.muted { color: var(--text-muted); }

.callout {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.callout strong { color: var(--text-strong); }

footer.legal-footer {
    margin-top: 56px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

footer.legal-footer p { margin: 6px 0; font-size: 13px; }

code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, "Menlo", monospace;
    font-size: 13px;
    color: var(--text-strong);
}

/* Plan grid — two-column pricing cards. Collapses to a single column on
   narrow viewports. */
.plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 28px 0 36px;
}

.plan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.plan-card.featured { border-color: var(--accent); }

.plan-card h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: var(--text-strong);
}

.plan-card .price {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 12px 0 0;
    line-height: 1.1;
}

.plan-card .price-suffix {
    display: inline-block;
    margin-left: 4px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    vertical-align: baseline;
}

.plan-card .plan-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.plan-card .plan-lede {
    color: var(--text-muted);
    font-size: 14px;
    margin: 14px 0 0;
}

.plan-card .features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.plan-card .features li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 14px;
    margin: 0;
}

.plan-card .features li::before {
    content: '✓';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: 600;
}

@media (max-width: 600px) {
    body { padding: 32px 16px 64px; }
    header.legal-header h1 { font-size: 22px; }
    table { font-size: 13px; }
    th, td { padding: 8px 10px; }
    .plan-grid { grid-template-columns: 1fr; gap: 16px; }
    .plan-card { padding: 22px 18px; }
}
