/* Νομικές σελίδες (privacy, terms) + σελίδα 404 (el/en) */

/* ---------------- Page header ---------------- */
.legal-updated { font-size: var(--fs-sm); font-weight: 600; }
.legal-updated .i { margin-right: 8px; vertical-align: -2px; color: #F2B79B; }

/* ---------------- Layout: TOC + κείμενο ---------------- */
.legal-layout { display: grid; gap: 28px; padding-block: clamp(28px, 5vw, 72px) clamp(64px, 8vw, 120px); }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 250px minmax(0, 1fr); gap: clamp(48px, 5vw, 88px); align-items: start; }
  .legal-toc { position: sticky; top: calc(var(--nav-h) + 32px); max-height: calc(100vh - var(--nav-h) - 64px); overflow-y: auto; }
}

/* Περιεχόμενα: disclosure στο κινητό, σταθερή στήλη στο desktop */
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.toc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 18px; font-weight: 700; color: var(--navy-900); cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .i { transition: transform var(--dur) var(--ease); }
.toc[open] summary .i { transform: rotate(180deg); }
.toc ol { list-style: none; margin: 0; padding: 0 8px 10px; }
.toc a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--muted); font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; text-decoration: none; transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast); }
.toc a span { min-width: 1.4em; font-variant-numeric: tabular-nums; color: var(--navy-300); }
.toc a:hover { color: var(--navy-900); background: var(--bg); }
.toc a[aria-current="true"] { color: var(--terra-ink); background: var(--terra-soft); }
.toc a[aria-current="true"] span { color: inherit; }
@media (min-width: 1024px) {
  .toc { background: none; border: 0; border-radius: 0; }
  .toc summary { min-height: 0; padding: 0 0 16px; cursor: default; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
  .toc summary .i { display: none; }
  .toc ol { padding: 0; border-left: 1px solid var(--line); }
  .toc a { margin-left: -1px; padding-left: 16px; border-radius: 0; border-left: 2px solid transparent; }
  .toc a:hover { background: none; }
  .toc a[aria-current="true"] { background: none; color: var(--navy-900); border-left-color: var(--terra); }
}

/* ---------------- Κείμενο ---------------- */
.prose { max-width: 760px; font-size: 1.0625rem; line-height: 1.75; overflow-wrap: break-word; }
.prose p, .prose li { max-width: 70ch; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--terra-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--navy-900); }
.legal-intro { font-size: var(--fs-md); color: var(--muted); }
.legal-sec { padding-top: clamp(32px, 4vw, 44px); margin-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--line); }
.prose > .legal-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-sec h2 { font-size: var(--fs-xl); margin: 0 0 .6em; }
.sec-num { font-family: var(--font-body); font-size: .62em; font-weight: 800; letter-spacing: .04em; color: var(--terra-ink); vertical-align: .22em; margin-right: .2em; }

/* Τίτλος ενότητας + κουμπί «αντιγραφή συνδέσμου» (το προσθέτει το legal.js) */
.sec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sec-head h2 { flex: 1; }
.sec-copy { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; margin-top: -4px; border: 0; border-radius: 50%; background: transparent; color: var(--navy-300); transition: color var(--dur-fast), background var(--dur-fast), opacity var(--dur-fast); }
.sec-copy:hover { color: var(--terra-ink); background: var(--terra-soft); }
@media (hover: hover) {
  .sec-copy { opacity: .5; }
  .sec-head:hover .sec-copy, .sec-copy:focus-visible { opacity: 1; }
}

.link-btn { display: inline; padding: 0; border: 0; background: none; color: var(--terra-ink); font: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link-btn:hover { text-decoration-thickness: 2px; }

/* Callouts */
.callout { display: flex; gap: 14px; margin: 22px 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--terra); border-radius: var(--r-md); }
.callout > .i { margin-top: 5px; color: var(--terra-ink); }
.callout p { margin: 0; }
.callout p + p, .callout p + .btn { margin-top: 14px; }
.callout-card { align-items: flex-start; border-left-width: 1px; box-shadow: var(--shadow-sm); }
.callout-card p { font-size: var(--fs-sm); line-height: 1.8; }
.callout-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--terra-soft); color: var(--terra-ink); }

/* Πίνακες: κανονικός πίνακας στο desktop, κάρτες στο κινητό */
.legal-table { width: 100%; margin: 22px 0; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: var(--fs-sm); line-height: 1.55; }
.legal-table th { padding: 12px 16px; background: var(--navy-900); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-align: left; vertical-align: bottom; }
.legal-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.legal-table tbody tr:first-child td { border-top: 0; }
.legal-table tbody tr:nth-child(even) td { background: #FCFAF7; }
.legal-table td:first-child { font-weight: 700; color: var(--navy-900); }
.legal-table code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .92em; overflow-wrap: anywhere; }
@media (max-width: 719px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table { background: none; border: 0; border-radius: 0; overflow: visible; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .legal-table tr { padding: 4px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
  .legal-table tr + tr { margin-top: 12px; }
  .legal-table td, .legal-table tbody tr:nth-child(even) td { padding: 10px 0; background: none; border-top: 0; }
  .legal-table td + td { border-top: 1px solid var(--line); }
  .legal-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
}

/* Τέλος σελίδας */
.legal-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------------- 404 ---------------- */
.nf { padding: calc(var(--nav-h) + clamp(40px, 6vw, 96px)) 0 clamp(64px, 8vw, 120px); }
.nf-grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .nf-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.nf-code { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(6rem, 3.5rem + 11vw, 11rem); font-weight: 500; line-height: .95; letter-spacing: -.04em; color: var(--navy-900); }
.nf-code span { color: var(--terra); }
.nf h1 { font-size: var(--fs-2xl); }
.nf .lead { max-width: 50ch; }
.nf-search { margin: 28px 0 24px; max-width: 540px; }
.nf-search .label { display: block; margin-bottom: 8px; }
.nf-search-row { display: flex; gap: 6px; padding: 5px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-pill); box-shadow: var(--shadow-sm); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.nf-search-row:focus-within { border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(16,38,59,.12); }
.nf-search-row .input { flex: 1; min-width: 0; border: 0; background: transparent; border-radius: var(--r-pill); }
.nf-search-row .input:focus { box-shadow: none; }
.nf-search-row .btn { flex-shrink: 0; padding: 0 20px; }
@media (max-width: 419px) { .nf-search-row .btn { width: 48px; padding: 0; } .nf-search-row .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

.nf-links { padding: clamp(20px, 3vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.nf-links h2 { margin: 0 0 8px; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.nf-links ul { list-style: none; margin: 0; padding: 0; }
.nf-links li + li { border-top: 1px solid var(--line); }
.nf-links a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 4px; color: var(--navy-900); font-weight: 700; text-decoration: none; }
.nf-links a small { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.nf-ico { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--terra-soft); color: var(--terra-ink); }
.nf-links a > .i:last-child { margin-left: auto; color: var(--navy-300); transition: transform var(--dur) var(--ease), color var(--dur-fast); }
.nf-links a:hover { color: var(--terra-ink); }
.nf-links a:hover > .i:last-child { color: var(--terra-ink); transform: translateX(4px); }
