/* ============================================================
   Gochu  shared layout for legal / utility pages
   (privacy, terms, support, delete-account)
   Depends on tokens.css (CSS variables)
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--gochu-void);
  color: var(--gochu-lunar);
  font-weight: var(--fw-light);
  line-height: var(--lh-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gochu-atmosphere);
  pointer-events: none;
  z-index: 0;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }
}

/* ---------- Nav (shared with landing) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-brand .word {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--gochu-ash);
  transition: color var(--dur-fast) var(--ease-standard);
}

.nav-links a:hover {
  color: var(--gochu-lunar);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: all var(--dur-standard) var(--ease-standard);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gochu-gradient);
  color: #fff;
  box-shadow: var(--shadow-accent-glow);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.btn-ghost {
  background: transparent;
  color: var(--gochu-lunar);
  border-color: rgba(255, 255, 255, 0.10);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 520px) {
  .nav-cta .btn-ghost {
    display: none;
  }
}

/* ---------- Page head ---------- */
.page-head {
  padding: 80px 0 40px;
}

.page-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gochu-ash);
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
}

.page-head .eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gochu-gradient);
  box-shadow: 0 0 8px rgba(255, 0, 128, 0.6);
}

.page-head h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 20px;
}

.page-head .lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--gochu-ash);
  font-weight: 300;
  line-height: 1.55;
  max-width: 60ch;
  margin: 0;
}

.page-head .updated {
  margin-top: 24px;
  font-size: 13px;
  color: var(--gochu-mute);
}

.gradient-text {
  background: var(--gochu-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Article layout ---------- */
.article {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  padding: 40px 0 120px;
  align-items: start;
}

@media (max-width: 900px) {
  .article {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .toc {
    display: none;
  }
}

.toc {
  position: sticky;
  top: 100px;
  padding: 20px;
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

.toc h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gochu-ash);
  margin: 0 0 12px;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc a {
  font-size: 13px;
  color: var(--gochu-ash);
  font-weight: 300;
  line-height: 1.4;
  display: block;
  transition: color var(--dur-fast) var(--ease-standard);
}

.toc a:hover {
  color: var(--gochu-lunar);
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--gochu-lunar);
  letter-spacing: -0.015em;
  margin: 56px 0 16px;
  padding-top: 8px;
}

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

.prose h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gochu-lunar);
  margin: 32px 0 10px;
}

.prose p {
  color: var(--gochu-ash);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  margin: 0 0 16px;
}

.prose p strong,
.prose li strong {
  color: var(--gochu-lunar);
  font-weight: 500;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.prose li {
  color: var(--gochu-ash);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 6px;
}

.prose li::marker {
  color: var(--gochu-pink-400);
}

.prose a {
  color: var(--gochu-lunar);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast) var(--ease-standard);
}

.prose a:hover {
  text-decoration-color: var(--gochu-pink-400);
}

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  padding: 2px 6px;
  background: var(--gochu-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: var(--gochu-lunar);
}

.prose .callout {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 24px 0;
}

.prose .callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gochu-lunar);
}

.prose .callout p:last-child {
  margin-bottom: 0;
}

.prose .callout.warn {
  border-color: rgba(255, 0, 128, 0.25);
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.05), rgba(121, 40, 202, 0.05));
}

/* ---------- Cards / support grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 920px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.s-card {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 28px;
  transition: all var(--dur-standard) var(--ease-standard);
  display: flex;
  flex-direction: column;
}

.s-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-iris-whisper);
}

.s-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.10), rgba(121, 40, 202, 0.10));
  border: 1px solid rgba(255, 0, 128, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.s-card .ico svg {
  stroke: var(--gochu-pink-400);
}

.s-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--gochu-lunar);
}

.s-card p {
  color: var(--gochu-ash);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.s-card .more {
  margin-top: 18px;
  font-size: 13px;
  color: var(--gochu-pink-400);
  font-weight: 500;
}

/* ---------- FAQ (shared) ---------- */
.faq-list {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

details.q {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--dur-standard) var(--ease-standard);
}

details.q[open] {
  border-color: rgba(255, 255, 255, 0.14);
}

details.q summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gochu-lunar);
  letter-spacing: -0.01em;
}

details.q summary::-webkit-details-marker {
  display: none;
}

details.q summary::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A3A3A3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  transition: transform var(--dur-standard) var(--ease-standard);
}

details.q[open] summary::after {
  transform: rotate(180deg);
}

details.q .a {
  padding: 0 24px 22px;
  color: var(--gochu-ash);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.65;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0;
  padding: 56px 0 40px;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 820px) {
  .foot-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .foot-top {
    grid-template-columns: 1fr;
  }
}

.foot-brand p {
  font-size: 13px;
  color: var(--gochu-ash);
  font-weight: 300;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 36ch;
}

.foot-brand .word {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.foot-col h4 {
  font-size: 12px;
  font-weight: 500;
  color: var(--gochu-lunar);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 18px;
}

.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col a {
  font-size: 13px;
  color: var(--gochu-ash);
  font-weight: 300;
}

.foot-col a:hover {
  color: var(--gochu-lunar);
}

.foot-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-bottom .meta {
  font-size: 12px;
  color: var(--gochu-mute);
  font-weight: 300;
}

.foot-bottom .legal {
  display: flex;
  gap: 18px;
}

.foot-bottom .legal a {
  font-size: 12px;
  color: var(--gochu-mute);
}

.foot-bottom .legal a:hover {
  color: var(--gochu-ash);
}

/* ---------- Form ---------- */
.form {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gochu-lunar);
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  background: var(--gochu-charcoal);
  border: 1px solid var(--gochu-ghost-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 300;
  color: var(--gochu-lunar);
  transition: border-color var(--dur-fast) var(--ease-standard);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: rgba(255, 0, 128, 0.5);
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.form .row {
  display: flex;
  gap: 14px;
}

@media (max-width: 600px) {
  .form .row {
    flex-direction: column;
    gap: 16px;
  }
}

.form .row>div {
  flex: 1;
}

.form .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.form .checkbox input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--gochu-hot-blush);
}

.form .checkbox label {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--gochu-ash);
  margin: 0;
}

.form .actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  align-items: center;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}