/* YUZIEN — standalone legal-page stylesheet.
   Minimal brand-consistent layout for Privacy / Terms / Cookie pages.
   Reuses the same tokens and type system as the main site. */
:root {
  --bg: #02060f;
  --line: rgba(160, 200, 255, 0.14);
  --line-soft: rgba(160, 200, 255, 0.09);
  --panel: rgba(148, 184, 255, 0.04);
  --accent: #4cc3ff;
  --text-hi: #eaf1fb;
  --text-body: #93a3bc;
  --text-dim: #5d6e88;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 8px;
  background: #0a1a2e;
  border: 1px solid var(--line);
  color: var(--text-hi);
  font-size: 14px;
}
.skip-link:focus {
  left: 12px;
}

.lg-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* Header */
.lg-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-block: 16px;
  background: rgba(2, 6, 15, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.lg-header .lg-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lg-brand {
  display: inline-flex;
  align-items: center;
}
.lg-brand img {
  height: 28px;
  width: auto;
}
.lg-tools {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.lg-tools a {
  color: var(--text-dim);
  text-decoration: none;
  padding-block: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.lg-tools a:hover {
  color: var(--text-hi);
}
.lg-tools a[aria-current="true"] {
  color: var(--accent);
}
.lg-tools .sep {
  color: rgba(93, 110, 136, 0.5);
}

/* Main */
.lg-main {
  padding-block: clamp(44px, 8vw, 88px) clamp(56px, 8vw, 96px);
}
.lg-back {
  margin-bottom: 28px;
}
.lg-back a {
  color: var(--text-body);
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.lg-back a:hover {
  color: var(--accent);
}

.lg-h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  background: linear-gradient(180deg, #f4f8ff, #aebed4 55%, #6e7f98);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lg-updated {
  margin: 0 0 clamp(28px, 4vw, 40px);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.lg-intro {
  max-width: 66ch;
  margin-bottom: 40px;
  color: var(--text-body);
}

.lg-section {
  max-width: 66ch;
  scroll-margin-top: 96px;
}
.lg-section + .lg-section {
  margin-top: 34px;
}
.lg-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(20px, 3.2vw, 24px);
  font-weight: 600;
  color: var(--text-hi);
  line-height: 1.25;
}
.lg-section p {
  margin: 0 0 14px;
}
.lg-section ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.lg-section li {
  margin-bottom: 8px;
}
.lg-section .lg-card {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin: 12px 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Footer */
.lg-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 26px;
}
.lg-footer .lg-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.lg-footer .lg-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.lg-footer a {
  color: var(--text-dim);
}
.lg-footer a:hover {
  color: var(--text-body);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}