/* privacy/css/privacy.css - PRIVACY (/privacy/), over the World's stylesheet (world/css/world.css).
 *
 * The same letter on parchment as Contact Us (contactus/css/contact.css), over the village at night, made for
 * reading: a wider card, headings that stand out, a list of contents, and one table that scrolls sideways inside itself
 * on a narrow phone rather than pushing the page. Phones first (16px gutters, no sideways scroll on the page).
 */

body.privacy { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }

/* THE BAR'S WAY BACK: the same pill as Contact Us, the guide's and the Hub's */
.bar__back {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 231, 160, .35); background: rgba(10, 14, 40, .55); color: #fff; text-decoration: none; font-size: 14px; font-weight: bold; white-space: nowrap;
  transition: border-color .2s, background .2s;
}
.bar__back:hover { border-color: var(--gold); background: rgba(30, 36, 80, .7); }
.bar__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.privacy__main {
  position: relative; flex: 1 0 auto; isolation: isolate; overflow: hidden;
  display: flex; justify-content: center; align-items: flex-start;
  padding: calc(84px + env(safe-area-inset-top, 0px)) var(--gutter) 48px;
}
.privacy__art {
  position: absolute; inset: 0; z-index: -2;
  background: url("../../assets/backgrounds/painted/web/room-village.jpg") 50% 0% / cover no-repeat;
}
.privacy__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(11, 18, 51, .35) 0%, rgba(7, 11, 30, .8) 55%),
    linear-gradient(180deg, rgba(7, 11, 30, .55) 0%, rgba(7, 11, 30, .9) 40%, var(--ink) 100%);
}

/* ---------------------------------------------------------------------------------------------- the letter */
.letter {
  width: 100%; max-width: 760px; min-width: 0; padding: 28px 20px 26px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(251, 243, 231, .98), rgba(240, 226, 200, .98));
  color: #2A1D3D; border: 1px solid rgba(255, 231, 160, .8);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 0 0 6px rgba(183, 121, 31, .12), inset 0 0 60px rgba(183, 121, 31, .12);
}
@media (min-width: 700px) { .letter { padding: 40px 48px 36px; } }
.letter__kicker {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 6px;
  font-size: 13px; font-weight: bold; letter-spacing: .3em; text-transform: uppercase; color: #8A5A12; text-align: center;
}
.letter__kicker .rule { flex: 0 0 auto; width: 36px; height: 1px; background: linear-gradient(90deg, transparent, #B7791F, transparent); }
.letter__title {
  margin: 0; text-align: center; font-family: var(--title-font); font-size: clamp(38px, 8vw, 56px); line-height: 1.05;
  letter-spacing: .02em; color: #241A3D;
}
.letter__lead { margin: 12px auto 6px; max-width: 34em; text-align: center; font-size: 17px; color: #45385C; }

/* ---------------------------------------------------------------------------------------------- the policy */
.policy { font-size: 17px; line-height: 1.6; }
.policy__date { margin: 0 0 22px; text-align: center; font-size: 14px; font-weight: bold; color: #6B5E80; }
.policy a { color: #7A4A0A; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.policy a:hover, .policy a:focus-visible { color: #241A3D; }
.policy section { padding-top: 22px; margin-top: 22px; border-top: 1px solid rgba(183, 121, 31, .3); scroll-margin-top: 84px; }
.policy h2 { margin: 0 0 10px; font-family: var(--title-font); font-size: clamp(24px, 5vw, 30px); line-height: 1.15; color: #241A3D; }
.policy h3 { margin: 18px 0 6px; font-size: 18px; color: #5A3A0C; }
.policy p { margin: 0 0 12px; color: #2A1D3D; }
.policy ul { margin: 0 0 12px; padding-left: 22px; }
.policy li { margin: 0 0 8px; }
.policy strong, .policy b { color: #241A3D; }
.policy code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; padding: 1px 6px; border-radius: 6px; background: rgba(183, 121, 31, .14); }

/* THE CONTENTS: two columns once there is room */
.policy__toc { margin: 0; padding: 14px 18px; border-radius: 12px; background: rgba(183, 121, 31, .1); border: 1px solid rgba(183, 121, 31, .25); }
.policy__toc-head { margin: 0 0 6px !important; font-size: 13px; font-weight: bold; letter-spacing: .2em; text-transform: uppercase; color: #8A5A12 !important; }
.policy__toc ol { margin: 0; padding-left: 22px; }
.policy__toc li { margin: 0; padding: 4px 0; }
.policy__toc a { display: inline-block; min-height: 28px; text-decoration: none; }
.policy__toc a:hover, .policy__toc a:focus-visible { text-decoration: underline; }
@media (min-width: 620px) { .policy__toc ol { columns: 2; column-gap: 32px; } .policy__toc li { break-inside: avoid; } }

/* WHO ELSE SEES IT: each service's name, then its one job */
.policy__list { margin: 0; }
.policy__list dt { margin: 14px 0 2px; font-weight: bold; color: #241A3D; }
.policy__list dd { margin: 0; padding-left: 14px; border-left: 3px solid rgba(183, 121, 31, .35); color: #2A1D3D; }

/* HOW LONG: the table scrolls inside its own box on a narrow phone */
.policy__table { overflow-x: auto; border-radius: 12px; border: 1px solid #C9B48A; background: #FFFCF6; }
.policy__table:focus-visible { outline: 3px solid rgba(245, 194, 66, .7); outline-offset: 2px; }
.policy__table table { width: 100%; min-width: 320px; border-collapse: collapse; font-size: 16px; }
.policy__table th, .policy__table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(183, 121, 31, .2); }
.policy__table th { background: rgba(183, 121, 31, .14); color: #241A3D; }
.policy__table tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------------------------------------- the foot */
.privacy__foot { padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--muted); font-size: 14px; }
.privacy__foot a { color: var(--gold-hi); }
