:root {
  --orange: #ff5a20;
  --orange-dark: #e94810;
  --orange-light: #fff1eb;
  --ink: #111827;
  --muted: #596579;
  --line: #e7eaee;
  --soft: #f7f8fa;
  --surface: #fff;
  --radius: 21px;
  --max: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a:hover { text-decoration: underline; }

button { font: inherit; }

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

.header {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid rgba(231, 234, 238, .76);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.05em;
}

.brand:hover { text-decoration: none; }

.logo-mark {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: var(--orange);
  border: 1px solid #e4e6ea;
  border-radius: 50%;
  font: 800 41px/.7 Georgia, serif;
}

.hr { color: var(--orange); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 17px;
}

.back {
  padding: 10px 14px;
  color: #475467;
  font-size: 14px;
  font-weight: 600;
}

.language {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language button {
  width: 43px;
  height: 35px;
  color: #687386;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.language button.active {
  color: var(--orange-dark);
  background: var(--orange-light);
}

.legal-hero {
  position: relative;
  padding: 70px 0 46px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.legal-hero::after {
  position: absolute;
  top: -220px;
  right: -180px;
  width: 520px;
  height: 520px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, #ffe5da, transparent 67%);
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 19px;
  padding: 8px 13px;
  color: var(--orange-dark);
  border-radius: 999px;
  background: var(--orange-light);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(39px, 5vw, 54px);
  letter-spacing: -.065em;
  line-height: 1.08;
}

.intro {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.updated {
  display: inline-block;
  margin-top: 25px;
  color: #667085;
  font-size: 13px;
}

.legal-body {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 46px;
  padding: 50px 0 80px;
}

.contents {
  position: sticky;
  top: 106px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.contents strong {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contents a {
  display: block;
  padding: 8px 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.35;
}

.contents a:hover { color: var(--orange); }

.document h2 {
  margin: 43px 0 15px;
  font-size: 26px;
  letter-spacing: -.04em;
  scroll-margin-top: 100px;
}

.document h2:first-child { margin-top: 0; }

.document h3 {
  margin: 26px 0 11px;
  font-size: 18px;
  letter-spacing: -.025em;
}

.document p, .document li {
  color: #475467;
  font-size: 15.5px;
  line-height: 1.7;
}

.document p { margin: 0 0 15px; }

.document ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.document li { margin: 7px 0; }

.detail-card {
  margin: 22px 0;
  padding: 22px 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.detail-card p:last-child { margin-bottom: 0; }

.detail-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  column-gap: 20px;
  row-gap: 10px;
  color: #475467;
  font-size: 15px;
  line-height: 1.55;
}

.detail-grid strong { color: var(--ink); }

.notice {
  margin: 22px 0;
  padding: 18px 21px;
  color: #7a3518;
  border: 1px solid #ffd6c5;
  border-radius: 13px;
  background: #fff6f2;
  font-size: 14px;
  line-height: 1.6;
}

.table-wrap {
  margin: 20px 0 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  min-width: 530px;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 15px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: #475467;
  line-height: 1.55;
  text-align: left;
}

th {
  color: var(--ink);
  background: var(--soft);
}

tr:last-child td { border-bottom: 0; }

.lang-content[hidden] { display: none; }

footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: #667085;
  font-size: 14px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 21px;
}

@media (max-width: 760px) {
  .container { width: calc(100% - 30px); }
  .nav { min-height: 68px; }
  .brand { font-size: 23px; gap: 8px; }
  .logo-mark { width: 40px; height: 40px; font-size: 37px; }
  .back { display: none; }
  .legal-hero { padding: 49px 0 37px; }
  h1 { font-size: 38px; }
  .legal-body {
    display: block;
    padding: 34px 0 64px;
  }
  .contents {
    position: static;
    margin-bottom: 34px;
  }
  .document h2 { margin-top: 37px; font-size: 24px; }
  .detail-grid {
    display: block;
  }
  .detail-grid strong {
    display: block;
    margin-top: 11px;
  }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}
