/* Shared styles for legal + support pages */
:root {
  --bg:           #F8F5EF;
  --surface:      #FFFCF7;
  --primary:      #2F7D73;
  --primary-soft: #DCEEE9;
  --accent:       #D9A441;
  --text:         #222826;
  --text-2:       #65706B;
  --text-3:       #8A938E;
  --border:       #E2DDD3;
  --radius-card:  8px;
  --radius-btn:   10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 245, 239, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav .container {
  display: flex; align-items: center;
  justify-content: space-between; height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 22px; font-weight: 800;
  color: var(--primary); letter-spacing: -0.5px;
}
.nav-logo img { width: 28px; height: 28px; object-fit: contain; }
.nav-logo-dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
  margin-left: 1px; vertical-align: middle; position: relative; top: -2px;
}
.btn-appstore {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--text); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-btn);
  font-size: 13px; font-weight: 600; line-height: 1.2;
  transition: background 0.18s, transform 0.18s; white-space: nowrap;
}
.btn-appstore:hover { background: #111; transform: translateY(-1px); }
.btn-appstore svg { flex-shrink: 0; }
.btn-appstore-label { display: flex; flex-direction: column; }
.btn-appstore-label .pre  { font-size: 10px; font-weight: 400; opacity: 0.75; }
.btn-appstore-label .main { font-size: 14px; font-weight: 700; }

/* ── PAGE HEADER ── */
.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 13px; color: var(--text-3); margin-bottom: 16px;
}
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { margin: 0 6px; }
.page-header h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -1px; line-height: 1.15;
  color: var(--text); margin-bottom: 8px;
}
.effective-date { font-size: 14px; color: var(--text-3); }

/* ── LEGAL BODY ── */
.legal-body { padding: 52px 0 96px; }
.legal-body .container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}
.legal-toc { position: sticky; top: 80px; }
.legal-toc-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-3); margin-bottom: 12px;
}
.legal-toc ul { list-style: none; }
.legal-toc li { margin-bottom: 4px; }
.legal-toc a { font-size: 13px; color: var(--text-2); line-height: 1.5; transition: color 0.15s; }
.legal-toc a:hover { color: var(--primary); }

.legal-sections { max-width: 720px; }
.legal-section {
  margin-bottom: 44px; padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.legal-section h2 {
  font-size: 19px; font-weight: 700;
  color: var(--text); margin-bottom: 16px;
  scroll-margin-top: 80px;
}
.legal-section p {
  font-size: 15px; color: var(--text-2);
  line-height: 1.75; margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }

/* Highlighted disclaimer block */
.disclaimer-block {
  background: #FFF8EC;
  border: 1px solid #E8D5A0;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 14px;
}
.disclaimer-block p { font-size: 14px; color: #5A4A1F; margin-bottom: 10px; }
.disclaimer-block p:last-child { margin-bottom: 0; }

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
footer .container {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-logo {
  display: flex; align-items: center; gap: 7px;
  font-size: 17px; font-weight: 800;
  color: var(--primary); letter-spacing: -0.4px;
}
.footer-logo img { width: 22px; height: 22px; object-fit: contain; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--text-3); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-3); }

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .legal-body .container { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}
@media (max-width: 600px) {
  footer .container { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
