/* ============================================================
   LEGAL — Privacy Policy / Terms & Conditions. Page-specific only;
   tokens, .wrap/.section/.crumb/.h-2/.note and the shared .reveal
   scroll-in animation come from css/shared/site-shell.css and
   site-shell-components.css (loaded by the view) — same pattern as
   css/checkout/layout.css, css/profile/layout.css.
   ============================================================ */

.site-shell .legal-container {
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- Header block ---------- */

.site-shell .legal-header {
  padding-bottom: clamp(28px, 4vw, 40px);
  margin-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.site-shell .legal-eyebrow {
  margin: 0 0 14px;
  font: 500 0.8125rem/1.2 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.site-shell .legal-title {
  margin: 0 0 14px;
}

.site-shell .legal-date {
  margin: 0;
}

/* ---------- Body sections ---------- */

.site-shell .legal-body section {
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}

.site-shell .legal-body section:first-child {
  padding-top: 0;
}

.site-shell .legal-body section:last-of-type {
  border-bottom: none;
}

.site-shell .legal-body h2 {
  margin: 0 0 16px;
}

.site-shell .legal-body p,
.site-shell .legal-body li {
  max-width: 68ch;
  font: 400 1rem/1.5625 var(--font-sans);
  color: var(--text-2);
  margin: 0 0 12px;
}

.site-shell .legal-body ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.site-shell .legal-body li {
  margin-bottom: 6px;
}

.site-shell .legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.site-shell .legal-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: text-decoration-thickness 0.2s;
}

.site-shell .legal-body a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Cross-link card (the one sand fill on the page) ---------- */

.site-shell .legal-crosslink {
  margin-top: clamp(32px, 5vw, 56px);
}

.site-shell .legal-crosslink-label {
  margin: 0 0 14px;
}

.site-shell .legal-crosslink-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2vw, 28px);
  background: var(--mist, #ebe6e1);
  border-radius: 0;
  text-decoration: none;
  transition: background-color 0.25s;
}

.site-shell .legal-crosslink-card:hover {
  background: var(--line, #ddd3cb);
}

.site-shell .legal-crosslink-card-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-shell .legal-crosslink-card-eyebrow {
  font: 500 0.75rem/1.2 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-text);
  opacity: 0.7;
}

.site-shell .legal-crosslink-card-title {
  font: 600 1.25rem/1.3 var(--font-sans);
  letter-spacing: -0.015em;
  color: var(--ink-text);
}

.site-shell .legal-crosslink-card-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-text);
  transition: background-color 0.2s;
}

.site-shell .legal-crosslink-card:hover .legal-crosslink-card-arrow {
  background: rgba(31, 69, 71, 0.1);
}

@media (max-width: 560px) {
  .site-shell .legal-crosslink-card {
    flex-direction: row;
    padding: 20px;
  }

  .site-shell .legal-crosslink-card-title {
    font-size: 1.0625rem;
  }
}

/* ---------- Cookie tables (cookie policy) ---------- */

.site-shell .legal-table-wrap {
  margin: 8px 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.site-shell .legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font: 400 0.875rem/1.5 var(--font-sans);
  color: var(--text-2);
}

.site-shell .legal-table th,
.site-shell .legal-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.site-shell .legal-table th {
  font-weight: 600;
  color: var(--text);
}

.site-shell .legal-table code {
  font: 500 0.8125rem/1.4 var(--font-mono, ui-monospace, monospace);
  color: var(--text);
  word-break: break-word;
}

.site-shell .legal-table-note {
  display: block;
  font-size: 0.75rem;
  color: var(--text-2);
}

/* "Cookie settings" inside running text: a button (it opens a dialog) styled as the links around it. */
.site-shell .legal-body .legal-link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.site-shell .legal-body .legal-link-btn:hover {
  text-decoration-thickness: 2px;
}
