/* UniHive privacy policy. Builds on css/styles.css (tokens, header, footer, buttons). */

.legal-head { padding-top: clamp(8px, 3vh, 32px); }
.legal-title { margin: 10px 0 0; font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.03em; }
.updated { margin: 12px 0 0; color: var(--muted); font-size: 16px; }

.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; margin-top: 40px; padding-bottom: 96px; align-items: start; }

.toc {
  position: sticky; top: 24px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow);
}
.toc h2 { margin: 0 0 8px; max-width: none; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.toc a { display: block; padding: 8px 0; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.toc a:hover { color: var(--text); }

.policy { max-width: 44rem; }
.policy .intro { margin: 0; color: var(--text); font-size: 19px; line-height: 1.65; }
.policy h2 { max-width: none; margin: 48px 0 14px; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; scroll-margin-top: 24px; }
.policy p { margin: 0 0 14px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.policy ul { margin: 0 0 18px; padding: 0; list-style: none; }
.policy li { position: relative; margin-bottom: 10px; padding-left: 28px; color: var(--text); font-size: 17px; line-height: 1.65; }
.policy li::before {
  content: ""; position: absolute; left: 4px; top: .6em; width: 11px; height: 10px; background: var(--amber);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.policy a { color: var(--text); font-weight: 700; text-underline-offset: 3px; }
.policy a:hover { color: var(--ok); }

@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .policy h2 { margin-top: 40px; }
}
@media print {
  .top, .foot, .toc, .skip { display: none !important; }
  .legal { display: block; margin-top: 16px; padding-bottom: 0; }
  .policy a::after { content: " (" attr(href) ")"; font-weight: 400; }
}
