/* Shared styles for the public legal pages on hemalia.com
   (privacy, cookie, termini, disclaimer).

   Same brand tokens as deploy/landing/index.html. Served under the landing
   vhost's strict CSP: style-src 'self' 'unsafe-inline', img-src 'self' data:,
   script-src 'none'. No JavaScript, no external requests. */

:root {
  --bg: #0b0b18;
  --bg-soft: #12122a;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --fg: #f4f4fb;
  --muted: #a9a9c4;
  --violet: #a78bfa;
  --cyan: #5eead4;
  --aurora: linear-gradient(135deg, #a78bfa 0%, #7c6cf0 40%, #5eead4 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient aurora glow at the top, mirrors the landing hero. */
body::before {
  content: "";
  position: fixed;
  top: -34vh;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 70vh;
  background: radial-gradient(
    ellipse at center,
    rgba(124, 108, 240, 0.18) 0%,
    rgba(94, 234, 212, 0.06) 42%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}

.brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--aurora);
  color: #0b0b18;
  box-shadow: 0 4px 22px rgba(124, 108, 240, 0.42);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.back:hover {
  color: var(--fg);
  border-color: var(--violet);
  background: rgba(167, 139, 250, 0.1);
}

/* --- Document --- */
.doc {
  padding: 24px 0 8px;
}

.doc h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  /* Fallback for browsers without background-clip: text */
  color: var(--fg);
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.updated {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

article {
  margin-top: 34px;
}

article > p {
  color: rgba(244, 244, 251, 0.88);
  margin-bottom: 14px;
}

article .lead {
  font-size: 1.05rem;
  color: var(--fg);
}

article section {
  margin-bottom: 32px;
}

article h2 {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 12px;
}

article h3 {
  font-size: 1rem;
  font-weight: 650;
  color: var(--fg);
  margin: 20px 0 8px;
}

article em {
  color: var(--fg);
  font-style: italic;
}

article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--fg);
}

article section p {
  color: rgba(244, 244, 251, 0.88);
  margin-bottom: 12px;
}

article section p:last-child {
  margin-bottom: 0;
}

article ul {
  list-style: disc;
  padding-left: 22px;
  margin: 4px 0 12px;
}

article li {
  color: rgba(244, 244, 251, 0.88);
  margin-bottom: 6px;
}

article li:last-child {
  margin-bottom: 0;
}

article strong {
  color: var(--fg);
  font-weight: 650;
}

article a {
  color: var(--violet);
  text-decoration: none;
  border-bottom: 1px solid rgba(167, 139, 250, 0.35);
  transition:
    color 0.2s,
    border-color 0.2s;
}

article a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* --- Cookie table --- */
.table-scroll {
  overflow-x: auto;
  margin: 10px 0 16px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  color: var(--fg);
  font-weight: 650;
}

td {
  color: rgba(244, 244, 251, 0.88);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* --- Callout --- */
.note {
  border-left: 3px solid var(--violet);
  background: rgba(167, 139, 250, 0.07);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 4px 0 14px;
  color: rgba(244, 244, 251, 0.9);
}

.note strong {
  color: var(--fg);
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 32px 0 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--violet);
}

@media (max-width: 560px) {
  header {
    padding: 22px 0;
  }
  .back {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
