/* Namma3D — shared stylesheet for static policy / info pages.
   Self-contained: does not depend on styles.css. */

:root {
  color-scheme: light;
  --ink: #16201d;
  --muted: #6a756f;
  --line: #e6eae6;
  --line-strong: #d7ddd7;
  --paper: #ffffff;
  --wash: #f5f7f5;
  --pop: #ff5a3c;
  --ok: #1f9d57;
  --radius: 14px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Geist, Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---- Focus + skip link ---- */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

/* ---- Sticky top bar ---- */
.legal-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.brand-word {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.back-link:hover {
  color: var(--ink);
  background: var(--wash);
}

/* ---- Content column ---- */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 22px 64px;
}

.legal-main h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 8px 0 6px;
}

.updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.legal-main h2 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
  scroll-margin-top: 80px;
}

.legal-main p {
  margin: 0 0 16px;
  overflow-wrap: break-word;
}

.legal-main ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-main li {
  margin: 0 0 8px;
}

.legal-main a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line-strong);
}

.legal-main a:hover {
  text-decoration-color: var(--ink);
}

.lead {
  font-size: 17px;
  color: var(--ink);
}

.fine {
  color: var(--muted);
  font-size: 14px;
}

/* Emphasised contact email */
.mail {
  font-weight: 600;
  text-decoration-color: var(--line-strong);
}

/* ---- Callout box ---- */
.callout {
  margin: 20px 0 22px;
  padding: 16px 18px;
  background: var(--wash);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--pop);
  border-radius: var(--radius);
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--ink);
}

/* Prominent contact block (contact page) */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 8px 0 24px;
  padding: 20px;
  background: var(--wash);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.contact-card .mail-big {
  font-size: 19px;
  font-weight: 600;
}

/* ---- Footer ---- */
.legal-foot {
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.legal-foot-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 22px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ink);
  background: var(--paper);
}

.foot-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.copyright {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 460px) {
  .legal-main {
    padding: 28px 18px 52px;
  }
  .legal-main h1 {
    font-size: 27px;
  }
  .brand-word {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
