/* Social Gym legal and support pages (privacy, terms, gyms, support). */
:root {
  --bg: #0d0a12; --card: #17121f; --card2: #1c1626; --line: #2b2438;
  --text: #f3eefa; --soft: #d6cfe3; --muted: #9d95ad;
  --ora: #ff8a3d; --yel: #ffc93d; --grn: #3de8a8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(620px 420px at 88% -10%, rgba(255,138,61,.20), transparent 70%),
    radial-gradient(520px 400px at 0% 30%, rgba(255,201,61,.06), transparent 70%);
}
a { color: var(--ora); text-decoration-color: rgba(255,138,61,.45); text-underline-offset: 3px; }
a:hover { color: var(--yel); }
b, strong { color: var(--text); font-weight: 700; }

.in { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13,10,18,.8); border-bottom: 1px solid rgba(43,36,56,.75);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.top .in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 16px rgba(255,138,61,.28); }
.lang { display: flex; gap: 6px; }
.lang button {
  background: var(--card2); color: var(--muted); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 20px; cursor: pointer;
  font-family: inherit; font-size: .8rem; font-weight: 700; line-height: 1;
}
.lang button.on { color: #150a02; background: linear-gradient(90deg, var(--ora), var(--yel)); border-color: transparent; }
html:not(.js) .lang { display: none; }

.doc {
  position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 38px 22px 30px;
  display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 0 44px; align-items: start;
}
.js .doc { display: none; }
.js .doc.on { display: grid; }
html:not(.js) .doc + .doc { border-top: 1px solid var(--line); }

.side {
  grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 92px;
  display: flex; flex-direction: column; gap: 18px;
  max-height: calc(100vh - 112px); overflow-y: auto; padding-bottom: 12px; scrollbar-width: thin;
}
.docs { display: flex; flex-direction: column; gap: 4px; }
.docs a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px;
  color: var(--muted); text-decoration: none; font-weight: 650; font-size: .92rem; line-height: 1.3;
  border: 1px solid transparent;
}
.docs a .i { width: 22px; text-align: center; font-size: 1rem; }
.docs a:hover { color: var(--text); background: var(--card); }
.docs a.on { color: var(--text); background: var(--card2); border-color: var(--line); box-shadow: inset 3px 0 0 var(--ora); }

.toc { border-top: 1px solid var(--line); padding-top: 16px; }
.toc summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "\25BE"; font-size: .9rem; transition: transform .15s ease; }
.toc:not([open]) summary::after { transform: rotate(-90deg); }
.toc ol { list-style: none; margin-top: 10px; display: flex; flex-direction: column; }
.toc a {
  display: block; padding: 5px 12px; border-left: 2px solid var(--line);
  color: var(--muted); text-decoration: none; font-size: .86rem; line-height: 1.4;
}
.toc a:hover { color: var(--text); }
.toc a.cur { color: var(--ora); border-left-color: var(--ora); }

.hero { grid-column: 2; grid-row: 1; padding: 4px 0 26px; }
.kicker {
  display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--yel); background: rgba(255,201,61,.08); border: 1px solid rgba(255,201,61,.24);
  padding: 5px 12px; border-radius: 999px;
}
.hero h1 {
  margin: 14px 0 10px; color: var(--text);
  font-size: clamp(1.95rem, 4.4vw, 2.9rem); line-height: 1.1; font-weight: 900; letter-spacing: -.5px;
}
.hero h1 .hl { background: linear-gradient(90deg, var(--ora), var(--yel)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.meta { color: var(--muted); font-size: .93rem; }

.body { grid-column: 2; grid-row: 2; min-width: 0; }
.blk {
  background: linear-gradient(180deg, rgba(28,22,38,.92), rgba(23,18,31,.92));
  border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; margin-bottom: 14px;
}
.blk h2 {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  color: var(--text); font-size: 1.14rem; line-height: 1.3; font-weight: 800;
}
.blk h2 .n {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255,138,61,.12); border: 1px solid rgba(255,138,61,.28);
  color: var(--ora); font-size: .84rem; font-weight: 900;
}
.blk > * + * { margin-top: 12px; }
.blk > h2 + * { margin-top: 0; }
.blk ul, .blk ol { padding-left: 1.3em; }
.blk li { margin: 8px 0; padding-left: 4px; }
.blk li::marker { color: var(--ora); }
.cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px;
  background: linear-gradient(90deg, var(--ora), var(--yel)); color: #150a02; font-weight: 800;
  text-decoration: none; box-shadow: 0 10px 28px rgba(255,138,61,.25); transition: transform .15s ease;
}
.cta:hover { color: #150a02; transform: translateY(-1px); }
.blk.contact { border-color: rgba(255,138,61,.35); background: linear-gradient(135deg, rgba(255,138,61,.13), rgba(28,22,38,.92) 55%); }

.foot { position: relative; z-index: 1; border-top: 1px solid #241d31; margin-top: 26px; }
.foot .in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 24px 22px 44px; color: var(--muted); font-size: .85rem; }
.foot a { color: var(--muted); }

@media (max-width: 880px) {
  .doc { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
  .side, .hero, .body { grid-column: auto; grid-row: auto; }
  .side { position: static; max-height: none; overflow: visible; gap: 12px; padding-bottom: 22px; }
  .docs { flex-direction: row; overflow-x: auto; gap: 6px; margin: 0 -22px; padding: 0 22px 2px; scrollbar-width: none; }
  .docs::-webkit-scrollbar { display: none; }
  .docs a { flex: 0 0 auto; background: var(--card); border-color: var(--line); padding: 7px 12px; font-size: .85rem; }
  .docs a .i { width: auto; }
  .docs a.on { box-shadow: none; color: #150a02; background: linear-gradient(90deg, var(--ora), var(--yel)); border-color: transparent; }
  .toc { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px 16px; }
  .hero { padding-bottom: 16px; }
  .blk { padding: 20px 18px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
