/* Shared SWFN Studio policy theme — matches the privacy hub home. */
:root {
  --bg: #fdf8f3;
  --bg-soft: #f5f0eb;
  --text: #16313a;
  --muted: rgba(22, 49, 58, 0.72);
  --muted-soft: rgba(22, 49, 58, 0.34);
  --accent: #67c6d3;
  --line: rgba(22, 49, 58, 0.08);
  --line-strong: rgba(22, 49, 58, 0.14);
  --card: rgba(255, 255, 255, 0.48);
  --card-solid: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 60px -40px rgba(22, 49, 58, 0.35);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --max: 1180px;
  --transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: "League Spartan", sans-serif;
  background: linear-gradient(180deg, #d7eef2 0%, #e4f1f4 18%, #edf6f7 40%, #dceff3 68%, #d1e8ed 100%);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(circle at 12% 14%, rgba(103, 198, 211, 0.56), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(129, 214, 225, 0.34), transparent 20%),
    radial-gradient(circle at 26% 72%, rgba(103, 198, 211, 0.24), transparent 22%),
    radial-gradient(circle at 88% 78%, rgba(74, 166, 181, 0.24), transparent 24%);
}

body::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--text);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #0f242b;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(103, 198, 211, 0.18);
}

.shell,
.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 8px 0 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mark,
.logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent);
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 12px 30px -16px rgba(103, 198, 211, 0.9);
}

.site-link,
.home-link,
.toplink,
.policy-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toplink {
  border: 1px solid var(--line-strong);
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.4);
}

.email-break {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero {
  margin-bottom: 28px;
}

/* Split hero used by most product policy pages */
.hero:has(.quick-card),
.hero:has(.summary-card),
.hero:has(.summary) {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

/* Standalone hero card (Dock) */
.hero:not(:has(.hero-main)):not(:has(.hero-card)):not(:has(.quick-card)):not(:has(.summary-card)):not(:has(.summary)) {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  padding: clamp(34px, 5vw, 56px);
}

.hero-main,
.hero-card,
.quick-card,
.summary-card,
.summary,
.toc,
.policy,
.terms,
.content-card,
.content,
.nav,
.meta-card,
.commitment {
  border: 1px solid var(--line-strong);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-main,
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 42px;
}

.hero-main::after,
.hero-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 198, 211, 0.28), transparent 68%);
  pointer-events: none;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(103, 198, 211, 0.18);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
  border: 1px solid var(--line-strong);
}

.pill::before,
.badge-dot {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.badge-dot {
  content: none;
}

h1 {
  max-width: 16ch;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 900;
  text-transform: uppercase;
}

h1 span {
  color: var(--accent);
  font-style: italic;
  text-transform: none;
}

.hero-copy,
.hero-text {
  max-width: 670px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.hero-brand img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-brand-copy strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.hero-brand-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.quick-card,
.summary-card,
.summary {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.quick-card h2,
.summary-title {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-list,
.summary-list {
  display: grid;
  gap: 11px;
}

.quick-item,
.summary-item {
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.quick-item strong,
.summary-item strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 4px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.quick-item span,
.summary-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: block;
  font-weight: 500;
}

.layout,
.grid {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.toc,
.nav {
  position: sticky;
  top: 20px;
  padding: 20px;
  border-radius: 20px;
}

.toc-title,
.nav-title {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.toc a,
.nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.toc a:hover,
.nav a:hover {
  color: var(--text);
}

.policy,
.terms,
.content-card,
.content {
  border-radius: 22px;
  padding: 36px;
}

section + section {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--line-strong);
}

.kicker,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 13px;
}

.kicker::after,
.section-kicker .line {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.section-kicker .line {
  content: none;
}

h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 15px;
  font-weight: 900;
}

h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  font-weight: 800;
}

p,
.lede {
  color: var(--muted);
  margin-top: 12px;
  font-weight: 500;
}

ul,
ol {
  color: var(--muted);
  margin: 14px 0 0 20px;
  font-weight: 500;
}

li + li {
  margin-top: 8px;
}

strong {
  color: var(--text);
  font-weight: 800;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.info-card,
.card {
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.info-card strong,
.card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13.5px;
}

.info-card p,
.card p {
  margin: 0;
  font-size: 13px;
}

.notice,
.callout {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(103, 198, 211, 0.35);
  background: rgba(103, 198, 211, 0.14);
}

.notice p,
.callout p {
  margin: 0;
  color: var(--text);
}

address {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

address a {
  color: var(--text);
  font-weight: 700;
}

.commitment {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
}

.commitment strong {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.commitment p {
  margin: 0;
}

.meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 28px;
}

.meta-card {
  border-radius: 18px;
  padding: 18px;
}

.meta-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.meta-card strong {
  font-size: 15px;
}

.footer,
.mini-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer a,
.mini-footer a {
  color: var(--text);
  text-decoration: underline;
}

/* Dock accordion / details extras */
details {
  margin-top: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.36);
  overflow: hidden;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 800;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  border-bottom: 1px solid var(--line);
}

details > *:not(summary) {
  padding: 0 18px 16px;
}

.contact-name {
  font-size: 16px;
}

@media (max-width: 880px) {
  .hero:has(.quick-card),
  .hero:has(.summary-card),
  .hero:has(.summary),
  .layout,
  .grid {
    grid-template-columns: 1fr;
  }

  .toc,
  .nav {
    position: static;
  }

  .meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .shell,
  .wrap {
    width: min(100% - 24px, var(--max));
    padding-top: 16px;
  }

  .site-link,
  .home-link:not(.brand),
  .policy-link {
    display: none;
  }

  .hero-main,
  .hero-card,
  .quick-card,
  .summary-card,
  .summary,
  .policy,
  .terms,
  .content-card,
  .content {
    border-radius: 20px;
    padding: 24px;
  }

  .cards,
  .meta {
    grid-template-columns: 1fr;
  }

  .footer,
  .mini-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(36px, 12vw, 52px);
  }
}

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