/* TurniriHR – Policy Pages (Terms & Privacy) */

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body,
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}

/* Tokens */
:root {
  --bg: #0b0e13;
  --bg-soft: #10151c;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e7ecf3;
  --muted: #b0bbca;
  --brand: #3b82f6;
  --brand-2: #2563eb;
  --focus: 0 0 0 3px rgba(59, 130, 246, 0.45);

  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.25);

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;

  --max-w: 840px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
}
:root[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-soft: #eef3fb;
  --surface: rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.08);
  --text: #0d1117;
  --muted: #4b5563;
  --brand: #2f6df6;
  --brand-2: #1f57e7;
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Background */
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: radial-gradient(
      1200px 800px at 15% 10%,
      rgba(59, 130, 246, 0.18),
      transparent 60%
    ),
    radial-gradient(
      1000px 700px at 85% 90%,
      rgba(99, 102, 241, 0.18),
      transparent 60%
    ),
    var(--bg);
}

/* Layout */
.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: start;
  justify-items: center;
  padding: var(--space-6) var(--space-3);
  gap: var(--space-6);
}

/* Brand header */
.brand {
  text-align: center;
}
.logo-img {
  width: 62px;
  height: 70px;
  margin-inline: auto;
  margin-bottom: var(--space-2);
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: white;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}
.brand-title {
  font-size: clamp(1.25rem, 1.1rem + 1vw, 1.8rem);
  letter-spacing: 0.2px;
}
.brand-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Panel */
.panel {
  width: min(100%, var(--max-w));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), transparent 140%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.panel-title {
  font-size: 1.35rem;
  margin-bottom: var(--space-4);
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: var(--space-4) 0 var(--space-4);
}

.muted {
  color: var(--muted);
}

/* Content */
.content {
  display: grid;
  gap: var(--space-4);
}
.content h3 {
  font-size: 1.05rem;
  margin-top: var(--space-2);
}
.content p {
  margin: 0;
}
.content ul,
.content ol {
  padding-left: 1.2rem;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

/* Links */
.link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Theme toggle */
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg-soft) 85%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.03s, background 0.2s, border-color 0.2s,
    box-shadow 0.2s, opacity 0.2s;
}
.theme-toggle:hover {
  background: color-mix(in oklab, var(--surface) 70%, transparent);
}
.theme-toggle:active {
  transform: translateY(1px);
}
.theme-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.theme-toggle .theme-icon {
  font-size: 1rem;
}

/* Accessibility */
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 10px;
}

/* Large screens */
@media (min-width: 960px) {
  .panel {
    padding: calc(var(--space-6) + 0.5rem);
  }
}

/* === Match index background exactly === */
html,
body {
  height: 100%;
}

body {
  position: relative;
  background: var(--bg) !important; /* flat base; no gradient here */
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      1200px 800px at 15% 10%,
      rgba(59, 130, 246, 0.18),
      transparent 60%
    ),
    radial-gradient(
      1000px 700px at 85% 90%,
      rgba(99, 102, 241, 0.18),
      transparent 60%
    ),
    var(--bg);
  background-repeat: no-repeat;
  pointer-events: none;
}
