/* Shared styles for RoPhim legal/info pages */
:root {
  --bg-0: #05070d;
  --bg-1: #0a0f1e;
  --bg-2: #111a30;
  --ink: #f3f1ea;
  --ink-dim: #b6bac6;
  --ink-mid: #8a8fa0;
  --ink-faint: #6b7186;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --accent: oklch(0.82 0.16 85);
  --accent-hot: oklch(0.88 0.17 90);
  --accent-glow: oklch(0.82 0.16 85 / 0.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

/* ============ BACKGROUND ============ */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, #15203d 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 90%, #2a1408 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 5% 80%, #08233a 0%, transparent 55%),
    linear-gradient(180deg, #05070d 0%, #03050a 100%);
}
.bokeh {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
}
.bokeh span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.grain {
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* ============ LAYOUT ============ */
.page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px clamp(20px, 4vw, 56px);
}

/* ============ NAV ============ */
header.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
  opacity: 0;
  animation: rise 0.7s 0.05s cubic-bezier(.2,.7,.2,1) forwards;
}
.brand { display: inline-flex; }
.brand img { display: block; height: 36px; width: auto; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.back:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateX(-2px);
}
.back svg { width: 14px; height: 14px; }

/* ============ MAIN ============ */
main {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.doc-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
  opacity: 0;
  animation: rise 0.8s 0.1s cubic-bezier(.2,.7,.2,1) forwards;
}
.doc-meta::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}

h1.title {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #c9cdd8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: rise 0.9s 0.2s cubic-bezier(.2,.7,.2,1) forwards;
}

.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0 0 56px;
  max-width: 640px;
  text-wrap: pretty;
  opacity: 0;
  animation: rise 0.9s 0.3s cubic-bezier(.2,.7,.2,1) forwards;
}

/* Section blocks */
.section {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: rise 0.9s var(--d, 0.4s) cubic-bezier(.2,.7,.2,1) forwards;
}
.section .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 6px;
}
.section h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-dim);
  text-wrap: pretty;
}
.section p:last-child { margin-bottom: 0; }
.section .body { min-width: 0; }

.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(245, 185, 33, 0.4);
  transition: border-color 0.15s ease;
}
.inline-link:hover { border-bottom-color: var(--accent); }

/* Definition-style list */
.deflist {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.deflist li {
  padding-left: 18px;
  position: relative;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-dim);
}
.deflist li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 8px; height: 1px;
  background: var(--ink-faint);
}
.deflist li strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}

/* contact card */
.contact-card {
  margin-top: 40px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(245, 185, 33, 0.05), rgba(245, 185, 33, 0.01)),
    rgba(255,255,255,0.015);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: rise 0.9s 1.1s cubic-bezier(.2,.7,.2,1) forwards;
}
.contact-card .left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-card .label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.contact-card .email {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
}
.contact-card .email:hover { color: var(--accent); }
.contact-card .send {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 100px;
  color: #02101e;
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.45) inset,
    0 -1px 0 rgba(0,0,0,0.15) inset,
    0 8px 24px -8px var(--accent-glow);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.contact-card .send:hover { transform: translateY(-1px); filter: brightness(1.05); }
.contact-card .send svg { width: 14px; height: 14px; }

/* ============ FOOTER ============ */
footer.bottom {
  margin-top: 80px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-faint);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: rise 0.9s 1.2s cubic-bezier(.2,.7,.2,1) forwards;
}
footer .ftr-links { display: flex; gap: 22px; }
footer a {
  color: var(--ink-faint); text-decoration: none;
  transition: color 0.15s ease;
}
footer a:hover { color: var(--ink-dim); }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .section { grid-template-columns: 1fr; gap: 8px; }
  .section .num { padding-top: 0; }
  .contact-card { flex-direction: column; align-items: flex-start; }
  .contact-card .send { width: 100%; justify-content: center; }
  footer.bottom { flex-direction: column; gap: 10px; text-align: center; align-items: center; }
  .lede { margin-bottom: 32px; }
}
