/* Club Planner legal pages: shared stylesheet for /termsandconditions and /privacypolicy.
   Uses the same tokens as the Club Site so both pages look like part of the club website.
   --primary* comes from the club theme (same variables the Club Site sets on :root). */
:root {
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --bg: #FBFBF9;
  --fg: #101820;
  --muted: #616A75;
  --line: rgba(16, 24, 32, .12);
  --surface: #FFFFFF;
  --r: 6px;
  --primary: #8eb33a;
  --primary-ink: #556a22;
  --primary-soft: #eff4e3;
  --maxw: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}
a { color: var(--primary-ink); text-underline-offset: 2px; }
a:hover { color: var(--fg); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }

/* Top bar, same rhythm as the Club Site nav */
.lp-top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 251, 249, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.lp-top__in {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.lp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); min-width: 0; }
.lp-brand img { height: 36px; width: auto; display: block; }
.lp-brand span { font-family: var(--font-display); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-back {
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--r); padding: 8px 14px; white-space: nowrap; background: var(--surface);
}
.lp-back:hover { border-color: var(--fg); }

/* Page header */
.lp-head { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 24px; }
.lp-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-ink); margin: 0 0 10px; }
.lp-head h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 0 0 14px;
}
.lp-lead { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 0 20px; }
.lp-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.lp-meta strong { color: var(--fg); font-weight: 600; }

/* Layout: table of contents + content */
.lp-body {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px 72px;
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start;
}
.lp-toc { position: sticky; top: 88px; font-size: 14px; }
.lp-toc details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.lp-toc summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; }
.lp-toc summary::-webkit-details-marker { display: none; }
.lp-toc ol { margin: 0; padding: 4px 16px 14px 34px; }
.lp-toc li { margin: 4px 0; }
.lp-toc a { color: var(--muted); text-decoration: none; }
.lp-toc a:hover { color: var(--fg); text-decoration: underline; }

.lp-content { min-width: 0; }
.lp-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 24px; margin: 0 0 32px;
}
.lp-card dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0; }
.lp-card dt { color: var(--muted); }
.lp-card dd { margin: 0; overflow-wrap: anywhere; }

.lp-content section { padding: 8px 0 24px; border-top: 1px solid var(--line); }
.lp-content section:first-of-type { border-top: 0; }
.lp-content h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em;
  font-size: 22px; line-height: 1.3; margin: 24px 0 12px;
}
.lp-content h3 { font-size: 16px; font-weight: 600; margin: 20px 0 6px; }
.lp-content p { margin: 0 0 12px; }
.lp-content ul, .lp-content ol { margin: 0 0 12px; padding-left: 22px; }
.lp-content li { margin: 4px 0; }
.lp-content li::marker { color: var(--primary-ink); }
.lp-num { color: var(--primary-ink); margin-right: 6px; }

.lp-note {
  background: var(--primary-soft); border-radius: var(--r); padding: 14px 18px; margin: 12px 0 16px; font-size: 15px;
}

/* Tables: readable on desktop, stacked cards on mobile, never a horizontal scrollbar */
.lp-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lp-table th, .lp-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.lp-table th { font-weight: 600; background: #F4F4F1; }
.lp-table tr:last-child td { border-bottom: 0; }

.lp-form {
  border: 1px dashed var(--line); border-radius: var(--r); padding: 16px 20px; background: var(--surface); font-size: 15px;
}

/* Footer, mirrors the Club Site footer */
.lp-foot { border-top: 1px solid var(--line); }
.lp-foot__in {
  max-width: var(--maxw); margin: 0 auto; padding: 24px; font-size: 14px; color: var(--muted);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
}
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.lp-foot a { color: var(--muted); }
.lp-foot a[aria-current="page"] { color: var(--fg); font-weight: 600; text-decoration: none; }

@media (max-width: 860px) {
  .lp-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lp-toc { position: static; }
  .lp-head { padding-top: 32px; }
  .lp-card dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lp-card dd { margin-bottom: 8px; }
  .lp-table thead { display: none; }
  .lp-table, .lp-table tbody, .lp-table tr, .lp-table td { display: block; width: 100%; }
  .lp-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .lp-table tr:last-child { border-bottom: 0; }
  .lp-table td { border: 0; padding: 4px 14px; }
  .lp-table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
}
@media (max-width: 480px) {
  .lp-brand span { display: none; }
}
@media print {
  .lp-top, .lp-toc, .lp-foot { display: none; }
  .lp-body { display: block; padding: 0 24px; }
  body { background: #fff; font-size: 11pt; }
  a { color: inherit; }
}

/* ---- Club Planner additions (not in the handoff): language switch, a club's own text in the same frame ---- */
.lp-top__end { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lp-lang { display: flex; gap: 2px; font-size: 13px; font-weight: 600; }
.lp-lang a { color: var(--muted); text-decoration: none; padding: 6px 7px; border-radius: var(--r); }
.lp-lang a:hover { color: var(--fg); background: var(--primary-soft); }
.lp-lang a[aria-current] { color: var(--fg); background: var(--primary-soft); }
.lp-body--single { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
.lp-custom { overflow-wrap: anywhere; }
.lp-custom h1 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.25; margin: 8px 0 12px; }
.lp-custom h2, .lp-custom h3, .lp-custom h4, .lp-custom h5, .lp-custom h6 { font-family: var(--font-display); font-weight: 600; }
.lp-custom h3 { font-size: 18px; margin: 22px 0 8px; }
.lp-custom h4, .lp-custom h5, .lp-custom h6 { font-size: 16px; margin: 18px 0 6px; }
.lp-custom img, .lp-custom iframe, .lp-custom video { max-width: 100%; height: auto; }
.lp-custom table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; display: block; overflow-x: auto; }
.lp-custom th, .lp-custom td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.lp-custom section { border-top: 0; padding: 0; }
.lp-custom nav, .lp-custom header, .lp-custom footer { all: unset; display: block; }
@media (max-width: 480px) {
  .lp-top__in { padding: 12px 16px; }
  .lp-head, .lp-body, .lp-foot__in { padding-left: 16px; padding-right: 16px; }
}
