/* Legal pages: content components (summary box, table of contents, steps, tables, the
   requests & complaints form). Layout stays in legal.css. No underlines: links are rose + 600. */
:root { --rose: #9d4b5c; --rose-wash: rgba(157,75,92,.08); --ok: #1f6b46; --bad: #8c2531; }
.legal-main h2[id] { scroll-margin-top: 24px; }
.legal-main code { font-family: ui-monospace, Consolas, monospace; font-size: .86em; overflow-wrap: anywhere; }

/* ---- "Kısaca / In short" */
.legal-summary { margin: 30px 0 0; padding: 24px 28px 10px; border-radius: 20px; background: linear-gradient(135deg, #fbf6f4 0%, #f6f3ef 100%); border: 1px solid #ece4df; }
.legal-summary .legal-summary-title { margin: 0 0 12px; font-family: Manrope, Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.legal-summary ul { list-style: none; padding: 0; margin: 0 0 14px; }
.legal-summary li { position: relative; padding-left: 26px; margin: 0 0 10px; line-height: 1.7; }
.legal-summary li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }

/* ---- table of contents */
.legal-toc { margin: 22px 0 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 18px; }
.legal-toc-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; columns: 2 220px; column-gap: 28px; font-size: 14.5px; }
.legal-toc li { counter-increment: toc; margin: 0; padding: 0; break-inside: avoid; }
.legal-toc a { display: flex; gap: 10px; align-items: baseline; min-height: 40px; padding: 8px 10px !important; margin: 0 -10px !important; border-radius: 10px; line-height: 1.45; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); flex-shrink: 0; font-size: 11.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- identity card, facts, placeholders */
.legal-identity { margin-top: 0; }
.legal-facts { display: grid; gap: 6px; margin: 14px 0 0; font-size: 14.5px; }
.legal-facts div { display: grid; grid-template-columns: minmax(130px, 30%) 1fr; gap: 14px; align-items: baseline; }
.legal-facts dt { color: var(--muted); font-weight: 600; }
.legal-facts dd { margin: 0; overflow-wrap: anywhere; }
.legal-facts a { display: inline-block; padding: 4px 3px !important; }
.placeholder { display: inline; padding: 2px 8px; border-radius: 8px; background: #fff1d6; color: #6b4a00; font-weight: 600; font-size: .92em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---- tables */
.table-wrap { margin: 22px 0 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; -webkit-overflow-scrolling: touch; }
.table-wrap .legal-table { margin: 0; }
.table-wrap .legal-table th, .table-wrap .legal-table td { border-bottom-color: #ece8e3; }
.table-wrap .legal-table tbody tr:last-child > * { border-bottom: 0; }
.legal-table thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal-table tbody th { background: #fbfaf8; }
.legal-table-wide th:first-child, .legal-table-wide td:first-child { width: 24%; }
.legal-table-group th { background: #f3efea !important; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- numbered steps */
.legal-steps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 26px; display: grid; gap: 12px; }
.legal-steps li { counter-increment: step; position: relative; margin: 0; padding: 14px 18px 14px 62px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.legal-steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #171717; color: #fff; font-size: 13px; font-weight: 700; }

/* ---- buttons */
.legal-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.legal-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 24px; border: 1px solid #171717; border-radius: 999px; background: #171717; color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.3; cursor: pointer; transition: background-color .2s, color .2s, transform .15s, box-shadow .2s; }
.legal-button:hover { background: #3a3a3a; border-color: #3a3a3a; box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); }
.legal-button:active { transform: scale(.98); }
.legal-button:focus-visible { outline: 2px solid #171717; outline-offset: 3px; }
.legal-button:disabled { opacity: .6; cursor: progress; }
.legal-button.is-quiet { background: #fff; color: #171717; border-color: rgba(23,23,23,.22); }
.legal-button.is-quiet:hover { background: #f5f2ee; border-color: #171717; box-shadow: none; }
.legal-top { margin: 36px 0 0; font-size: 14px; }
.legal-note { font-size: 14px; color: var(--muted); }
.legal-footer a[href^="mailto:"] { font-weight: 600; }

/* ---- requests & complaints form */
.feedback-form { display: grid; gap: 18px; margin: 20px 0 10px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 24px 60px -40px rgba(23,23,23,.35); }
.feedback-kinds { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.feedback-kinds legend { margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 700; }
.feedback-kind { position: relative; display: block; cursor: pointer; }
.feedback-kind input { position: absolute; inset: 14px auto auto 14px; width: 18px; height: 18px; margin: 0; accent-color: #171717; }
.feedback-kind > span { display: grid; gap: 2px; min-height: 100%; padding: 12px 14px 12px 42px; border: 1px solid #ddd8d2; border-radius: 14px; background: #fcfbfa; transition: border-color .18s, background-color .18s, box-shadow .18s; }
.feedback-kind strong { font-size: 14.5px; line-height: 1.4; }
.feedback-kind small { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.feedback-kind:hover > span { border-color: #171717; }
.feedback-kind input:checked + span { border-color: #171717; background: #fff; box-shadow: inset 0 0 0 1px #171717; }
.feedback-kind input:focus-visible + span { outline: 2px solid #171717; outline-offset: 3px; }
.feedback-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.feedback-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.feedback-field label { font-size: 14px; font-weight: 600; }
.feedback-optional { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.feedback-field input, .feedback-field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #8a8580; border-radius: 13px; background: #fcfbfa; color: #171717; font: inherit; font-size: 16px; line-height: 1.5; transition: border-color .18s, box-shadow .18s, background-color .18s; }
.feedback-field textarea { min-height: 150px; resize: vertical; }
.feedback-field input:focus, .feedback-field textarea:focus { outline: none; border-color: #171717; background: #fff; box-shadow: 0 0 0 4px rgba(23,23,23,.1); }
.feedback-field [aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(140,37,49,.1); }
.feedback-field small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.feedback-count { justify-self: end; font-variant-numeric: tabular-nums; }
.feedback-hint { margin: -6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.feedback-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.65; cursor: pointer; }
.feedback-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: #171717; }
.feedback-trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feedback-form .field-error { margin: -8px 0 0; color: var(--bad); font-size: 13.5px; font-weight: 600; }
.feedback-field .field-error { margin: 0; }
.field-error[hidden], .form-message[hidden], .feedback-done[hidden], .feedback-form[hidden] { display: none; }
.form-message { padding: 12px 16px; border-radius: 12px; background: #f6f3ef; font-size: 14px; line-height: 1.6; }
.form-message.is-error { background: #f8ecee; color: var(--bad); font-weight: 600; }
.feedback-form .legal-button[type="submit"] { justify-self: start; min-width: 180px; }
.feedback-done { margin: 20px 0 10px; padding: 28px; border-radius: 22px; background: #eef5f0; border: 1px solid #cfe3d6; }
.feedback-done:focus { outline: none; }
.feedback-done:focus-visible { outline: 2px solid #171717; outline-offset: 3px; }
.feedback-done-title { margin: 0 0 10px; font-family: 'Instrument Serif', Georgia, serif; font-size: 30px; line-height: 1.2; }
.feedback-ref { font-family: ui-monospace, Consolas, monospace; font-size: 18px; letter-spacing: .04em; padding: 3px 10px; border-radius: 8px; background: #fff; }
.feedback-done .legal-button { min-height: 40px; padding: 7px 16px; font-size: 13.5px; margin-left: 6px; }
.feedback-done p:last-child { margin-bottom: 0; }
.feedback-done p:last-child .legal-button { margin-left: 0; }

@media (max-width: 700px) {
  .legal-summary { padding: 20px 20px 6px; border-radius: 18px; }
  .legal-toc { padding: 16px 18px; }
  .legal-toc ol { columns: 1; }
  .legal-facts div { grid-template-columns: 1fr; gap: 0; }
  .feedback-form { padding: 20px 16px; border-radius: 18px; }
  .feedback-grid { grid-template-columns: 1fr; }
  .feedback-kinds { grid-template-columns: 1fr; }
  .feedback-form .legal-button[type="submit"] { justify-self: stretch; }
  .legal-cta .legal-button { flex: 1 1 100%; }
  .legal-steps li { padding: 14px 14px 14px 56px; }
  .legal-steps li::before { left: 14px; }
  .legal-table-wide { min-width: 600px; }
  .feedback-done { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { .legal-button, .feedback-kind > span, .feedback-field input, .feedback-field textarea { transition: none; } }
@media print { .legal-cta, .legal-toc, .legal-top, .feedback-form, .feedback-done { display: none; } .legal-summary { border: 1px solid #ccc; background: none; } .placeholder { border: 1px dashed #999; background: none; } }
