/* Shared styles for privacy.html and terms.html */
:root {
  --primary: #0E9AA7;
  --primary-light: #1ED6D6;
  --primary-dark: #0B3D4A;
  --bg: #F7FBFC;
  --surface: #FFFFFF;
  --text: #0B2A33;
  --text-2: #6B7F86;
  --border: #DCE8EB;
  --primary-surface: #E6F6F7;
  --hero: linear-gradient(135deg, #0E9AA7 0%, #0C6F7E 55%, #0B3D4A 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--primary-dark); text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.back { font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.back:hover { text-decoration: underline; }

/* Header */
.page-head { background: var(--hero); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(30,214,214,.35), transparent 70%); animation: drift 14s ease-in-out infinite; }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; font-weight: 800; margin-bottom: 10px; animation: rise .7s ease both; }
.page-head p { opacity: .9; animation: rise .7s .15s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes drift { 50% { transform: translate(-40px, 30px) scale(1.1); } }

/* Layout: table of contents + content */
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 56px 20px 80px; }
.toc { position: sticky; top: 94px; align-self: start; font-size: 14px; }
.toc strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: 10px; }
.toc ol { list-style: none; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.active { color: var(--primary); border-left-color: var(--primary); }

.content { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 44px; min-width: 0; }
.content section { scroll-margin-top: 90px; }
.content section + section { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--border); }
.content h2 { font-size: 22px; line-height: 1.3; margin-bottom: 12px; color: var(--primary-dark); }
.content h3 { font-size: 16px; margin: 18px 0 6px; }
.content p, .content li { color: #2c4650; font-size: 15.5px; }
.content p + p { margin-top: 10px; }
.content ul { margin: 10px 0 0 20px; display: grid; gap: 6px; }
.intro { background: var(--primary-surface); border-radius: 14px; padding: 18px 20px; margin-bottom: 32px; }

.table-wrap { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg); font-weight: 600; }

/* Fill-in values the site owner must replace before publishing */
.fill { background: #FFF4D6; color: #7A5200; padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* Footer */
footer { background: var(--primary-dark); color: rgba(255,255,255,.75); padding: 30px 0; font-size: 14px; }
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: rgba(255,255,255,.85); text-decoration: none; margin-left: 20px; }
footer a:first-child { margin-left: 0; }
footer a:hover { color: #fff; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px 60px; }
  .toc { position: static; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
  .content { padding: 26px 20px; }
  .container { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
