/* Rockland Beauty — /privacy and /terms.
   Legal documents recomposed into the canonical DESIGN.md "light clinic-atelier"
   world so the pages feel on-brand rather than like a plain legal block: warm ivory
   ground, a soft rounded hero panel, a "spotlight" key-points card, an "on this page"
   pill rail, an editorial numbered article over a warm-sand card, and a rounded
   consultation close. Pale lavender accent panels, deep plum text, Hatton display
   serif + Helvetica Now, 20-40px radii, capsule controls, soft layered shadows,
   calm scroll-reveal that respects prefers-reduced-motion. No dark full-width
   sections, no numeric kickers over headings, no hard offset shadows. */

:root {
  --rbw-cream: #fdf9f2;
  --rbw-cream-2: #f6edde;
  --rbw-cream-3: #efe3d1;
  --rbw-plum: #413033;
  --rbw-plum-2: #573f43;
  --rbw-plum-3: #2c1f21;
  --rbw-gold: #e7c091;
  --rbw-gold-2: #d9a867;
  --rbw-ink: #2e2022;
  --rbw-muted: #7a6a68;
  --rbw-muted-on-plum: #ddcac6;
  --rbw-lilac: #f4f3fb;
  --rbw-lilac-2: #e7e6f5;
  --rbw-lilac-3: #d9d8ee;
  --rbw-line: rgba(65, 48, 51, .12);
  --rbw-line-on-plum: rgba(253, 249, 242, .2);
  --rbw-radius-lg: 40px;
  --rbw-radius-md: 28px;
  --rbw-radius-sm: 20px;
  --rbw-shadow: 0 28px 64px -34px rgba(46, 32, 34, .45), 0 10px 26px -18px rgba(46, 32, 34, .22);
  --rbw-shadow-soft: 0 20px 44px -28px rgba(46, 32, 34, .32);
  --rbw-gutter: clamp(24px, 5vw, 96px);
  --rbw-shell: 1320px;
  --rbw-ease: cubic-bezier(.22, 1, .36, 1);
}

.legal-page {
  margin: 0;
  overflow-x: clip;
  background: var(--rbw-cream);
  color: var(--rbw-plum);
}

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

.legal-page a,
.legal-page button {
  -webkit-tap-highlight-color: transparent;
}

.legal-page a:focus-visible,
.legal-page button:focus-visible {
  outline: 3px solid var(--rbw-gold);
  outline-offset: 3px;
}

.legal-page .main-wrap {
  flex: none;
}

/* ---------------------------------------------------------------- header */
.legal-page .site-header {
  position: static;
}

.legal-page .site-header .container {
  max-width: var(--rbw-shell);
  margin: 0 auto;
  padding: clamp(20px, 2.2vw, 28px) var(--rbw-gutter) 16px;
}

.legal-page .site-header .header__contacts {
  margin-right: clamp(24px, 1.65vw, 32px);
}

/* ---------------------------------------------------------------- base */
.legal-main {
  width: 100%;
}

.legal-section-wrap {
  width: 100%;
  padding: clamp(20px, 3vw, 44px) var(--rbw-gutter) 0;
}

.legal-shell-inner {
  max-width: var(--rbw-shell);
  margin: 0 auto;
  width: 100%;
}

/* --------------------------------------------------------- hero (panel) */
.legal-hero {
  padding: clamp(12px, 2vw, 28px) var(--rbw-gutter) clamp(40px, 5vw, 64px);
}

.legal-hero__panel {
  position: relative;
  max-width: var(--rbw-shell);
  margin: 0 auto;
  padding: clamp(48px, 6.5vw, 84px) clamp(28px, 5.5vw, 72px) clamp(40px, 5vw, 64px);
  border-radius: var(--rbw-radius-lg);
  background: linear-gradient(155deg, var(--rbw-cream-2) 0%, var(--rbw-cream-3) 100%);
  box-shadow: var(--rbw-shadow-soft);
  overflow: hidden;
}

/* soft decorative haze, echoing the atelier layered-photography depth */
.legal-hero__panel::before,
.legal-hero__panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
}

.legal-hero__panel::before {
  width: clamp(260px, 34vw, 460px);
  height: clamp(260px, 34vw, 460px);
  right: -8%;
  top: -30%;
  background: var(--rbw-lilac-2);
}

.legal-hero__panel::after {
  width: clamp(200px, 26vw, 360px);
  height: clamp(200px, 26vw, 360px);
  left: -6%;
  bottom: -36%;
  background: var(--rbw-gold);
  opacity: .32;
}

.legal-hero__content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.legal-hero__eyebrow {
  margin: 0 0 18px;
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rbw-gold-2);
}

.legal-hero__title {
  margin: 0 0 20px;
  font-family: "Hatton-Medium", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--rbw-plum);
}

.legal-hero__lede {
  max-width: 40rem;
  margin: 0 0 26px;
  font-size: 1.06rem;
  line-height: 1.68;
  color: var(--rbw-muted);
}

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(14px, 2vw, 28px);
  margin-bottom: 30px;
}

.legal-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .5em 1em;
  border-radius: 999px;
  background: var(--rbw-cream);
  box-shadow: var(--rbw-shadow-soft);
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: .82rem;
  line-height: 1;
  color: var(--rbw-muted);
}

.legal-hero__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--rbw-gold-2);
}

.legal-hero__branch {
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--rbw-muted);
}

.legal-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
}

/* ------------------------------------------------------------- controls */
/* app.css forces `button { border-radius: 0 !important }` globally; win the
   capsule back for the page's pill CTAs with a more specific !important, the
   same way the other interior pages do, so the buttons match the site's
   "Schedule a Consultation" pill exactly. */
.legal-page button.legal-cta,
.legal-page button.legal-ghost {
  border-radius: 999px !important;
}

.legal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 1.12em 1.95em;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--rbw-cream);
  background: var(--rbw-plum);
  box-shadow: 0 16px 30px -18px rgba(46, 32, 34, .6);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
  text-decoration: none;
}

.legal-cta:hover {
  transform: translateY(-2px);
  background: var(--rbw-plum-2);
  /* app.css sets a global `a:hover { color: #2d9bff }`; pin the pill's own
     colour so a link-styled primary keeps cream-on-plum like the button one. */
  color: var(--rbw-cream);
  box-shadow: 0 22px 40px -20px rgba(46, 32, 34, .55);
}

/* Secondary action: the design system's ghost capsule — same pill geometry and
   height as the primary, hairline edge, fills plum on hover. The hairline is an
   inset shadow rather than a border so the box height matches the primary
   exactly (a real 1px border would add 2px). */
.legal-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 1.12em 1.95em;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--rbw-plum);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--rbw-line);
  text-decoration: none;
  transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}

.legal-ghost:hover {
  transform: translateY(-2px);
  background: var(--rbw-plum);
  color: var(--rbw-cream);
  box-shadow: inset 0 0 0 1px var(--rbw-plum);
}

/* ------------------------------------------------------ on-this-page rail */
.legal-rail {
  padding: 0 var(--rbw-gutter) clamp(28px, 4vw, 48px);
}

.legal-rail__inner {
  max-width: var(--rbw-shell);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-rail__label {
  margin: 0;
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--rbw-muted);
}

.legal-rail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.legal-rail__chip {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .62em .95em;
  border-radius: 999px;
  background: var(--rbw-cream-2);
  font-family: "HelveticaNowDisplay-Regular", Arial, sans-serif;
  font-size: .88rem;
  line-height: 1;
  color: var(--rbw-plum);
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.legal-rail__chip span {
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: .72rem;
  color: var(--rbw-gold-2);
}

.legal-rail__chip:hover {
  background: var(--rbw-plum);
  color: var(--rbw-cream);
  transform: translateY(-2px);
}

.legal-rail__chip:hover span {
  color: var(--rbw-gold);
}

/* --------------------------------------------------- spotlight key points */
.legal-spotlight {
  padding: 0 var(--rbw-gutter) clamp(40px, 5vw, 64px);
}

.legal-spotlight__card {
  max-width: var(--rbw-shell);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--rbw-radius-lg);
  background: linear-gradient(150deg, var(--rbw-lilac) 0%, var(--rbw-lilac-2) 100%);
  box-shadow: var(--rbw-shadow-soft);
}

.legal-spotlight__label {
  margin: 0 0 20px;
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: 1rem;
  color: var(--rbw-plum);
}

.legal-spotlight__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.legal-spotlight__item {
  padding-top: 18px;
  border-top: 1px solid var(--rbw-line);
}

.legal-spotlight__item strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Hatton-Medium", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--rbw-plum);
}

.legal-spotlight__item p {
  margin: 0;
  font-size: .96rem;
  line-height: 1.6;
  color: var(--rbw-muted);
}

/* --------------------------------------------------------- article panel */
.legal-article {
  padding: 0 var(--rbw-gutter) clamp(48px, 6vw, 80px);
}

.legal-article__panel {
  max-width: var(--rbw-shell);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px);
  border-radius: var(--rbw-radius-lg);
  background: var(--rbw-cream-2);
  box-shadow: var(--rbw-shadow-soft);
}

.legal-article__lede {
  max-width: 46rem;
  margin: 0 0 clamp(36px, 5vw, 56px);
  font-size: 1.06rem;
  line-height: 1.68;
  color: var(--rbw-muted);
}

.legal-article__lede a,
.legal-body a {
  color: var(--rbw-plum);
  text-decoration: underline;
  text-decoration-color: var(--rbw-gold-2);
  text-underline-offset: 3px;
  transition: color .25s ease, text-decoration-color .25s ease;
}

.legal-article__lede a:hover,
.legal-body a:hover {
  color: var(--rbw-plum-2);
  text-decoration-color: var(--rbw-plum-2);
}

/* ---------------------------------------------------------------- section */
.legal-section {
  display: grid;
  grid-template-columns: minmax(84px, 120px) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 40px);
  padding: clamp(36px, 4.5vw, 56px) 0;
  border-top: 1px solid var(--rbw-line);
}

.legal-section:first-child {
  border-top: 0;
  padding-top: clamp(8px, 1vw, 16px);
}

.legal-section__num {
  margin: 0;
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: .9rem;
  letter-spacing: .1em;
  color: var(--rbw-gold-2);
  padding-top: .4em;
}

.legal-section__main {
  min-width: 0;
}

.legal-section__title {
  margin: 0 0 16px;
  font-family: "Hatton-Medium", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--rbw-plum);
}

/* ------------------------------------------------------------- body copy */
.legal-body {
  max-width: 44rem;
  font-size: 1.06rem;
  line-height: 1.68;
  color: var(--rbw-muted);
}

.legal-body strong {
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  color: var(--rbw-plum);
}

.legal-body p {
  margin: 0 0 16px;
}

.legal-body p:last-child {
  margin-bottom: 0;
}

.legal-sub {
  margin: 26px 0 0;
}

.legal-sub:first-of-type {
  margin-top: 0;
}

.legal-sub__title {
  margin: 0 0 12px;
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: 1.06rem;
  line-height: 1.4;
  color: var(--rbw-plum);
}

.legal-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-list li {
  position: relative;
  padding-left: 1.5em;
  margin: 0;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--rbw-gold-2);
}

.legal-list--ordered {
  counter-reset: legal-step;
}

.legal-list--ordered li {
  counter-increment: legal-step;
  padding-left: 2em;
}

.legal-list--ordered li::before {
  content: counter(legal-step);
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: .9rem;
  color: var(--rbw-gold-2);
}

.legal-list a {
  color: var(--rbw-plum);
  text-decoration: underline;
  text-decoration-color: var(--rbw-gold-2);
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- callout */
.legal-callout {
  margin: 22px 0 4px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--rbw-radius-sm);
  border: 1px solid var(--rbw-line);
  background: linear-gradient(160deg, var(--rbw-cream) 0%, var(--rbw-cream-2) 100%);
  box-shadow: var(--rbw-shadow-soft);
  font-size: 1rem;
  line-height: 1.66;
  color: var(--rbw-muted);
}

.legal-callout p {
  margin: 0 0 10px;
}

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

/* ----------------------------------------------------- closing CTA panel */
.legal-close {
  padding: 0 var(--rbw-gutter) clamp(56px, 7vw, 96px);
}

.legal-close__panel {
  max-width: var(--rbw-shell);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) clamp(28px, 5.5vw, 72px);
  border-radius: var(--rbw-radius-lg);
  background: var(--rbw-cream-3);
  box-shadow: var(--rbw-shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.legal-close__title {
  margin: 0 0 16px;
  font-family: "Hatton-Medium", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--rbw-plum);
}

.legal-close__lede {
  margin: 0 0 22px;
  max-width: 38rem;
  font-size: 1.06rem;
  line-height: 1.68;
  color: var(--rbw-muted);
}

.legal-close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
}

.legal-close__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--rbw-radius-md);
  background: var(--rbw-cream);
  box-shadow: var(--rbw-shadow-soft);
}

.legal-close__contacts-title {
  margin: 0 0 4px;
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--rbw-muted);
}

.legal-close__contacts address {
  font-style: normal;
  font-size: .98rem;
  line-height: 1.6;
  color: var(--rbw-plum);
  margin: 0 0 12px;
}

.legal-close__contacts a {
  display: inline-flex;
  width: max-content;
  padding-bottom: .2em;
  font-family: "HelveticaNowDisplay-Medium", Arial, sans-serif;
  font-size: 1.02rem;
  color: var(--rbw-plum);
  text-decoration: none;
  border-bottom: 1px solid var(--rbw-line);
  transition: border-color .25s ease, color .25s ease;
}

.legal-close__contacts a:hover {
  border-color: var(--rbw-plum);
  color: var(--rbw-plum-2);
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .legal-spotlight__list {
    grid-template-columns: 1fr;
  }

  .legal-close__panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .legal-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .legal-section__num {
    padding-top: 0;
  }

  .legal-article__panel {
    padding: clamp(28px, 5vw, 44px);
  }
}

/* --------------------------------------------------------- reveal */
@media (prefers-reduced-motion: no-preference) {
  .legal-page .rbw-reveal--armed {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .85s ease, transform .85s var(--rbw-ease);
  }

  .legal-page .rbw-reveal--armed.is-inview {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-page .rbw-reveal {
    transition: none !important;
  }
}
