/* Styles for the legal pages (terms.html, privacy.html). Kept separate from
   index.html's inline block so the two pages share one small file instead of
   duplicating 300 lines of landing-page CSS. */

:root {
  --bg-page: #f6f8fa;
  --bg-white: #ffffff;
  --nav-dark: #0d1117;
  --border: #d0d7de;
  --text-primary: #1f2328;
  --text-secondary: #59636e;
  --link: #0969da;
  --accent: #609926;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ── top bar ── */
.topnav { background: var(--nav-dark); border-bottom: 1px solid #21262d; }
.topnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 58px; }
.topnav-logo { display: flex; align-items: center; gap: 10px; color: #e6edf3; font-weight: 600; font-size: 0.95rem; }
.topnav-logo:hover { text-decoration: none; }
.topnav-logo-mark { width: 24px; height: 24px; border-radius: 6px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; }
.topnav-back { color: #9aa4af; font-size: 0.85rem; }
.topnav-back:hover { color: #e6edf3; text-decoration: none; }

/* ── document ── */
main { flex: 1; padding: 44px 0 64px; }

.card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 40px 44px; }

h1 { font-size: 1.7rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.meta { color: var(--text-secondary); font-size: 0.82rem; margin-bottom: 28px; }
h2 { font-size: 1.02rem; margin: 28px 0 10px; }
h2:first-of-type { margin-top: 4px; }
p, li { font-size: 0.92rem; }
p { margin-bottom: 12px; }
ul { margin: 0 0 12px 20px; }
li { margin-bottom: 6px; }
code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.86em; background: #eaeef2; padding: 2px 5px; border-radius: 4px; }
.lead { color: var(--text-secondary); margin-bottom: 20px; }
.places { display: grid; gap: 2px; margin-bottom: 14px; }
.contact-block { background: var(--bg-page); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; font-size: 0.9rem; }

/* ── footer ── */
.footer { background: var(--nav-dark); border-top: 1px solid #21262d; padding: 22px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; color: #7d8590; }
.footer-links { display: flex; gap: 18px; list-style: none; margin: 0; }
.footer-links a { color: #7d8590; }
.footer-links a:hover { color: #e6edf3; text-decoration: none; }

@media (max-width: 640px) {
  .card { padding: 26px 20px; }
  h1 { font-size: 1.4rem; }
  main { padding: 28px 0 44px; }
}
