/* Shared styles for Bonsan legal pages (privacy, cookies) */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
  font-family: 'Inter Display';
  src: url('Inter_24pt-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter Heading';
  src: url('Inter_28pt-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter Label';
  src: url('Inter_18pt-ExtraLight.ttf') format('truetype');
  font-weight: 200; font-style: normal; font-display: swap;
}

:root {
  --pad-x: 64px;
  --bg: #f4f3ef;
  --ink: #0a0a0a;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Label', sans-serif;
  font-weight: 200;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ================= NAV ================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px var(--pad-x);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-logo { height: 44px; width: auto; display: block; }
.nav-logo img { height: 44px; width: auto; display: block; filter: invert(1); }
.nav-right { display: flex; align-items: center; gap: 26px; }
.lang {
  background: none; border: none; color: inherit; cursor: pointer;
  font-family: 'Inter Heading', sans-serif;
  font-weight: 400;
  font-size: 15px; letter-spacing: 0.04em;
  opacity: 0.45;
  padding: 6px 2px;
  transition: opacity 0.3s;
}
.lang.active { opacity: 1; }
.lang:hover { opacity: 0.8; }
.hamburger {
  width: 28px; height: 22px;
  position: relative;
  background: none; border: none; cursor: pointer;
  padding: 0;
  color: #0a0a0a;
}
.hamburger span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: #0a0a0a;
  transition: transform 0.4s cubic-bezier(.65,0,.35,1), opacity 0.3s ease;
}
.hamburger span:nth-child(1) { top: 2px; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger:hover span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger:hover span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.hamburger:hover span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================= CONTENT ================= */
main {
  padding: 180px var(--pad-x) 120px;
  max-width: 1600px;
}
.legal-title {
  font-family: 'Inter Heading', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 80px;
  margin-left: clamp(0px, 18vw, 360px);
  max-width: 820px;
}
.legal-body {
  margin-left: clamp(0px, 18vw, 360px);
  max-width: 760px;
  font-family: 'Inter Label', sans-serif;
  font-weight: 200;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
}
.legal-lead {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 60px;
  max-width: 700px;
}
.legal-block { margin-bottom: 56px; }
.legal-block h2 {
  font-family: 'Inter Display', sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 0.005em;
  margin-bottom: 14px;
}
.legal-block h3 {
  font-family: 'Inter Display', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 30px;
  margin-bottom: 8px;
  opacity: 0.7;
}
.legal-block p + p { margin-top: 12px; }
.legal-list {
  list-style: none;
  margin-top: 14px;
}
.legal-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 4px;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.85em;
  width: 12px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
a.legal-mail {
  color: rgba(10,10,10,0.5);
  border-bottom: 1px solid rgba(10,10,10,0.25);
  transition: color 0.25s, border-color 0.25s;
}
a.legal-mail:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.legal-table {
  display: block;
  margin-top: 18px;
  border-top: 1px solid rgba(10,10,10,0.18);
}
.legal-row {
  display: grid;
  grid-template-columns: 200px 1fr 120px;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(10,10,10,0.12);
  font-size: 15px;
  line-height: 1.5;
  align-items: baseline;
}
.legal-row > span:first-child {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
}
.legal-row.legal-head {
  font-family: 'Inter Display', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}
.legal-row.legal-head > span:first-child { font-family: inherit; }

.legal-updated {
  margin-top: 80px;
  opacity: 0.5;
  font-size: 14px;
  letter-spacing: 0.05em;
}

hr.legal-rule {
  margin-top: 80px;
  margin-left: clamp(0px, 18vw, 360px);
  max-width: 760px;
  border: 0;
  border-top: 1px solid rgba(10,10,10,0.18);
}

/* ================= FOOTER ================= */
footer {
  padding: 0 var(--pad-x) 36px;
  font-family: 'Inter Label', sans-serif;
  font-weight: 200;
}
footer, footer * {
  font-family: 'Inter Label', sans-serif;
  font-weight: 200;
}
.footer-back {
  display: flex; justify-content: center;
  padding: 80px 0 100px;
}
.footer-back a {
  display: inline-flex; align-items: center; gap: 16px;
  border: 1px solid var(--ink);
  padding: 18px 42px;
  border-radius: 999px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.footer-back a:hover { background: var(--ink); color: var(--bg); }

.footer-legal {
  display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--ink);
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  opacity: 0.6;
}
.footer-legal-right { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-legal a:hover { opacity: 1; }

/* ================= MENU OVERLAY ================= */
.menu-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: #0a0a0a; color: #fff;
  display: flex; flex-direction: column;
  padding: 26px var(--pad-x) 48px;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.menu-overlay.open { transform: translateY(0); }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-top .nav-logo img { filter: none; }
.menu-close {
  width: 30px; height: 30px;
  background: none; border: none; color: #fff; cursor: pointer;
  position: relative;
}
.menu-close::before, .menu-close::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1.5px; background: currentColor;
}
.menu-close::before { transform: rotate(45deg); }
.menu-close::after  { transform: rotate(-45deg); }
.menu-list {
  list-style: none;
  margin: auto 0;
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-start;
}
.menu-list li {
  font-family: 'Inter Heading', sans-serif; font-weight: 400;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 1.1; letter-spacing: -0.03em;
  color: #fff;
  cursor: pointer;
  padding: 4px 20px;
  margin-left: -20px;
}
.menu-list li:hover { background: #fff; color: #0a0a0a; }

@media (max-width: 900px) {
  :root { --pad-x: 22px; }
  .nav { padding: 18px 22px; }
  main { padding: 130px var(--pad-x) 80px; }
  .legal-title { margin-left: 0; margin-bottom: 60px; }
  .legal-body { margin-left: 0; font-size: 16px; }
  .legal-lead { font-size: 17px; }
  hr.legal-rule { margin-left: 0; }
  .legal-row { grid-template-columns: 1fr; gap: 4px; }
  .legal-row.legal-head { display: none; }
}
