/* Shared style for all legal / policy pages on ddos-secure.com.
   Matches the landing page palette so the brand feels uniform.
   Kept terse on purpose — legal text should read like a document,
   not a marketing page; nothing here competes with the content. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Mobile zoom lock — `user-scalable=no` in the viewport meta is
   ignored by iOS Safari since iOS 10 (they treat it as an a11y
   concern). `touch-action: pan-x pan-y` on html/body disables
   pinch-zoom gestures on every modern mobile browser including iOS
   while leaving panning and scrolling intact. `text-size-adjust`
   prevents iOS from auto-enlarging text on orientation changes. */
html, body {
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  --bg: #06080f;
  --bg2: #0b1120;
  --card: #111827;
  --accent:  #3b82f6;
  --accent2: #8b5cf6;
  --accent3: #06b6d4;
  --text: #e2e8f0;
  --muted: #94a3b8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background: subtle grid + two orbs, same as landing. Fixed so
   they don't scroll with long doc content. */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .12;
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 500px; height: 500px; background: var(--accent); top: -100px;  left: -200px; }
.orb-2 { width: 400px; height: 400px; background: var(--accent2); bottom: -100px; right: -200px; }

/* Nav bar. Sticky so the "Back" link is always one click away. */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.1rem 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 8, 15, .8);
  border-bottom: 1px solid rgba(59, 130, 246, .08);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--text);
}
.logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.nav-actions { display: flex; gap: 1rem; align-items: center; }
.nav-actions a { color: var(--muted); text-decoration: none; font-size: .9rem; transition: color .2s; }
.nav-actions a:hover { color: var(--text); }
.btn {
  display: inline-block;
  padding: .55rem 1.2rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff !important;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, .35);
}

main { flex: 1; position: relative; z-index: 1; }

.doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.doc-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.doc-kicker {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: .75rem;
  font-weight: 600;
}
.doc h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: .75rem;
  letter-spacing: -.01em;
}
.doc-date { color: var(--muted); font-size: .85rem; }

.doc h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 1rem;
  letter-spacing: -.01em;
  color: var(--text);
}
.doc h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 .6rem;
  color: var(--text);
}
.doc p { color: #cbd5e1; margin-bottom: 1rem; }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul, .doc ol { margin: .5rem 0 1.25rem 1.5rem; color: #cbd5e1; }
.doc ul li, .doc ol li { margin-bottom: .4rem; }
.doc code {
  font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
  font-size: .85em;
  background: rgba(255, 255, 255, .05);
  padding: .15rem .4rem;
  border-radius: 4px;
  color: var(--accent3);
}
.doc a { color: var(--accent); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc hr { border: none; border-top: 1px solid rgba(255,255,255,.06); margin: 2.5rem 0; }

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(59,130,246,.06);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  color: var(--muted);
  font-size: .92rem;
}
.callout.warn {
  background: rgba(245,158,11,.06);
  border-left-color: #f59e0b;
}

.toc {
  padding: 1.1rem 1.3rem;
  background: rgba(17, 24, 39, .5);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 10px;
  margin: 1.5rem 0 2.5rem;
}
.toc-title {
  font-size: .72rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .12em;
  margin-bottom: .7rem;
  font-weight: 600;
}
.toc ul { margin: 0; list-style: none; padding: 0; }
.toc li { margin-bottom: .35rem; }
.toc a {
  color: var(--muted);
  font-size: .88rem;
  text-decoration: none;
  transition: color .2s;
}
.toc a:hover { color: var(--accent); }

footer {
  border-top: 1px solid rgba(255, 255, 255, .05);
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: .82rem;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  nav { padding: 1rem; }
  .doc { padding: 2rem 1.25rem 3rem; }
  .doc h1 { font-size: 1.7rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
