/* Gromi v2 — shared styles for legal pages (terms, privacy).
   Mirrors the design tokens used inline in /index.html. */

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

:root {
  --bg: #fdfcf7;
  --white: #ffffff;
  --beige: #f2f0e8;
  --card: #ffffff;
  --text: #171513;
  --text-2: #6f6a63;
  --border: rgba(23, 21, 19, 0.10);
  --border-2: rgba(23, 21, 19, 0.06);
  --blue: #d96b57;
  --blue-ink: #b8523d;
  --green: #5f9e91;
  --green-deep: #27695d;
  --shadow-sm: 0 1px 2px rgba(23, 21, 19, .05);
  --maxw: 1140px;
}

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

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: "Fraunces", "Geist", -apple-system, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}

.wrap { width: min(var(--maxw), calc(100% - 44px)); margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
  box-shadow: 0 6px 18px rgba(217, 107, 87, .26);
}
.btn:hover { background: var(--blue-ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(217, 107, 87, .32); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 247, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--text); }
.brand .mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: none;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: 0.94rem; font-weight: 500; color: var(--text-2); transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }

/* ---------- content page ---------- */
.content-page {
  width: min(720px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 120px);
}
.content-page h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.content-page > p em {
  color: var(--text-2);
  font-style: normal;
  font-size: 0.92rem;
}
.content-page h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 48px 0 12px;
  letter-spacing: -0.02em;
}
.content-page h3 {
  font-size: 1.1rem;
  margin: 26px 0 8px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.content-page p,
.content-page li {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.72;
  margin-bottom: 14px;
}
.content-page ul,
.content-page ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.content-page li { margin-bottom: 6px; }
.content-page a { color: var(--blue-ink); font-weight: 600; border-bottom: 1px solid rgba(184, 82, 61, .25); transition: border-color .15s ease; }
.content-page a:hover { border-bottom-color: var(--blue-ink); }
.content-page strong { color: var(--text); font-weight: 600; }
.content-page .table-wrap {
  margin: 18px 0 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.content-page table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.94rem;
  background: var(--card);
}
.content-page > table {
  display: block;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.content-page th,
.content-page td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-2);
  color: var(--text-2);
}
.content-page th {
  background: var(--beige);
  color: var(--text);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.content-page tbody tr:last-child td { border-bottom: 0; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 36px 0 44px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer .brand { font-size: 1.05rem; }
.footer .f-links { display: flex; gap: 22px; }
.footer .f-links a { color: var(--text-2); font-size: 0.9rem; }
.footer .f-links a:hover { color: var(--text); }
.footer .copyr { color: var(--text-2); font-size: 0.85rem; }

@media (max-width: 640px) {
  .nav-inner { height: 64px; }
  .nav-links { gap: 14px; }
  .content-page h2 { margin-top: 36px; }
}
