/* Styles for the Terms and Privacy pages, matching the homepage and hosting page. */
:root { --bg: #1a1a2e; --panel: #16213e; --line: #0f3460; --violet: #7b2fff; --lilac: #c77dff; --muted: #aab; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body { background: var(--bg); color: #ddd; line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--lilac); }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

.stars { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.star { position: absolute; width: 2px; height: 2px; background: var(--lilac); border-radius: 50%; box-shadow: 0 0 4px var(--lilac); animation: twinkle 3s infinite ease-in-out; opacity: 0; }
@keyframes twinkle { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

main { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 0 24px 40px; }
.doc-head { position: relative; overflow-x: clip; text-align: center; padding: 132px 0 36px; }
.doc-head .glow { position: absolute; top: 58%; left: 50%; transform: translate(-50%, -50%); width: 620px; height: 420px; max-width: 130vw; background: radial-gradient(ellipse, #7b2fff2b 0%, transparent 68%); pointer-events: none; animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
.eyebrow { position: relative; color: var(--lilac); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
h1 { position: relative; font-size: clamp(2rem, 5.4vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 10px; background: linear-gradient(100deg, #c77dff 0%, #7b2fff 60%, #9d4edd 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.updated { position: relative; color: #889; font-size: .88rem; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 28px; }
.toc a { font-size: .8rem; text-decoration: none; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; transition: color .2s, border-color .2s, background .2s; }
.toc a:hover { color: #fff; border-color: #7b2fff88; background: #7b2fff1a; }

.doc { background: linear-gradient(180deg, #16213ee6, #16213e99); border: 1px solid var(--line); border-radius: 20px; padding: 14px 40px 40px; }
.doc h2 { font-size: 1.15rem; color: var(--lilac); margin: 34px 0 8px; padding-top: 26px; border-top: 1px solid #0f346099; }
.doc h2:first-of-type { border-top: 0; padding-top: 12px; margin-top: 18px; }
.doc p, .doc li { font-size: .97rem; margin-bottom: 10px; color: #ccd; }
.doc ul { padding-left: 22px; }
.doc li::marker { color: var(--lilac); }
.doc strong { color: #fff; }

.back { display: block; text-align: center; margin: 26px 0 0; font-size: .85rem; }

footer { position: relative; z-index: 1; margin-top: 40px; border-top: 1px solid var(--line); padding: 24px 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .8rem; color: #667; }
footer a { text-decoration: none; color: var(--lilac); }

@media (max-width: 640px) {
  main { padding: 0 14px 24px; }
  .doc-head { padding-top: 112px; }
  .doc { padding: 6px 20px 28px; border-radius: 16px; }
  footer { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
