/* Giriş ekranı: kullanım şartları / gizlilik politikası sayfadan çıkmadan alttan açılan pencerede (js/auth-legal.js).
   Kayıt ekranındaki pencerenin (css/register-auth.css) giriş temasına (css/auth.css değişkenleri) uyarlanmış hâli. */
.legal-sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.legal-sheet[hidden] { display: none; }
.legal-sheet__backdrop { position: absolute; inset: 0; background: rgba(8, 10, 14, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s ease; }
.legal-sheet__panel { position: relative; display: flex; flex-direction: column; width: min(100%, 720px); max-height: min(88vh, 88dvh); border: 1px solid var(--au-line); border-bottom: 0; border-radius: 24px 24px 0 0; background: var(--au-card); color: var(--au-ink); box-shadow: 0 -18px 60px rgba(0, 0, 0, .35); outline: 0; transform: translateY(100%); transition: transform .32s cubic-bezier(.22, 1, .36, 1); }
.legal-sheet.is-open .legal-sheet__backdrop { opacity: 1; }
.legal-sheet.is-open .legal-sheet__panel { transform: none; }
.legal-sheet.is-dragging .legal-sheet__panel { transition: none; }
.legal-sheet__grab { display: grid; place-items: center; padding: 10px 0 2px; cursor: grab; touch-action: none; }
.legal-sheet__grab i { width: 42px; height: 4px; border-radius: 4px; background: var(--au-line); }
.legal-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px 14px; border-bottom: 1px solid var(--au-line); }
.legal-sheet__head h2 { margin: 0; font: 800 17px/1.3 'Manrope', sans-serif; letter-spacing: -.02em; }
.legal-sheet__x { flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--au-line); border-radius: 50%; background: transparent; color: var(--au-ink); font-size: 20px; line-height: 1; cursor: pointer; }
.legal-sheet__x:hover, .legal-sheet__x:focus-visible { border-color: var(--au-focus); color: var(--au-focus); }
.legal-sheet__body { flex: 1 1 auto; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 6px 20px 18px; }
.legal-sheet__body h1 { display: none; }
.legal-sheet__body h2 { margin: 22px 0 8px; font: 700 15px 'Manrope', sans-serif; color: var(--au-ink); }
.legal-sheet__body p, .legal-sheet__body li, .legal-sheet__body td { color: var(--au-muted); font-size: 14px; line-height: 1.75; }
.legal-sheet__body ul { padding-left: 20px; }
.legal-sheet__body strong { color: var(--au-ink); }
.legal-sheet__body a { color: var(--au-focus); }
.legal-sheet__body .legal-version { margin: 14px 0 0; font-size: 12px; }
.legal-sheet__body .legal-draft { display: inline-flex; margin-top: 14px; padding: 6px 9px; border: 1px solid var(--au-line); border-radius: 6px; background: var(--au-soft); color: var(--au-focus); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.legal-sheet__state { padding: 40px 0; color: var(--au-muted); text-align: center; font-size: 14px; }
.legal-sheet__foot { display: flex; justify-content: flex-end; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--au-line); }
.legal-sheet__close { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--au-btn); color: var(--au-btn-ink); font: 600 15px 'DM Sans', system-ui, sans-serif; cursor: pointer; }
body.legal-open { overflow: hidden; }
@media (max-width: 520px) { .legal-sheet__close { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .legal-sheet__panel, .legal-sheet__backdrop { transition: none; } }
