/* Legal document layout for the flagship legal pages (e.g. /legal/aydinlatma).
   External stylesheet on purpose: the site CSP is `style-src 'self'` (inline <style> is blocked and
   would need a hash), so all styling lives here where 'self' already allows it — no CSP hash to renew. */

.legal {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 40px) 96px;
  color: var(--mist, #E7E9F2);
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 15.5px;
  line-height: 1.72;
}
.legal__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #E9B44C);
  margin: 0 0 10px;
}
.legal__title {
  font-family: var(--serif, "Fraunces", Georgia, serif);
  font-size: clamp(26px, 4.5vw, 38px);
  line-height: 1.14;
  font-weight: 560;
  color: var(--white, #fff);
  margin: 0 0 8px;
}
.legal__meta {
  font-size: 13px;
  color: var(--slate, #9AA3B8);
  margin: 0 0 8px;
}
/* Download-PDF link under the meta line, above the document body. Reuses .legal a's existing
   gold link color -- only layout/size is set here. */
.legal__pdf {
  margin: 0 0 24px;
  font-size: 13px;
}
.legal__note {
  border: 1px solid var(--gold-line, rgba(233, 180, 76, 0.55));
  background: var(--gold-glow, rgba(233, 180, 76, 0.07));
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--mist, #E7E9F2);
  margin: 0 0 34px;
}
.legal h2 {
  font-family: var(--serif, "Fraunces", Georgia, serif);
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 560;
  color: var(--white, #fff);
  margin: 34px 0 10px;
}
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin: 0 0 8px; }
.legal strong { color: var(--white, #fff); font-weight: 600; }
.legal a { color: var(--gold, #E9B44C); }
.legal a:hover { color: var(--gold-2, #F0C776); }
.legal__back {
  display: inline-block;
  margin-top: 40px;
  font-size: 14px;
  color: var(--slate, #9AA3B8);
  text-decoration: none;
}
.legal__back:hover { color: var(--gold, #E9B44C); }

/* Sub-headings, tables, rule — needed by the per-doc legal pages (privacy/terms/eula/kvkk-aydinlatma),
   whose generated content goes one level deeper than the original aydinlatma page's flat h2-only body. */
.legal h3 {
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--white, #fff);
  margin: 24px 0 8px;
}
.legal h4 {
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--mist, #E7E9F2);
  margin: 16px 0 6px;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 13px;
}
.legal th,
.legal td {
  border: 1px solid var(--line, rgba(231, 233, 242, 0.10));
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.legal th {
  color: var(--white, #fff);
  font-weight: 600;
  background: var(--ink-2, #151B3E);
}
.legal hr {
  border: none;
  border-top: 1px solid var(--line, rgba(231, 233, 242, 0.10));
  margin: 28px 0 14px;
}

/* Legal directory index — card grid, one card per document. Mirrors the homepage .prodcard look
   (border, radius, hover lift, gold arrow) without an icon slot, since legal docs have no product mark. */
.legal-index-lead {
  font-size: 15px;
  color: var(--slate, #9AA3B8);
  margin: 0 0 28px;
  max-width: 60ch;
}
/* Legal directory index — vertical single-column stack of bordered cards, one per document
   (mirrors the homepage .prodcard border/radius/background/hover language). Each card carries
   its own faint, centered Hullcore mark watermark; text/arrow sit above it via z-index. */
.legal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px;
}
.legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line, rgba(231, 233, 242, 0.10));
  border-radius: 16px;
  background: var(--ink-2, #151B3E);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.legal-row:hover {
  border-color: var(--gold-line, rgba(233, 180, 76, 0.55));
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -28px rgba(0, 0, 0, .9);
}
.legal-row__text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
}
.legal-row__name {
  font-family: var(--serif, "Fraunces", Georgia, serif);
  font-size: 17px;
  color: var(--white, #fff);
}
.legal-row__desc {
  font-size: 13.5px;
  color: var(--slate, #9AA3B8);
}
.legal-row__go {
  flex: 0 0 auto;
  color: var(--gold, #E9B44C);
  font-size: 14px;
  transition: transform .18s ease;
}
.legal-row:hover .legal-row__go { transform: translateX(3px); }

/* Faint page-background watermark — one large Hullcore sail mark on the right side, roughly
   vertically centered (matches the brand-banner treatment), behind all content, non-interactive.
   position:fixed anchors it to the true viewport edge (not .legal's own centered 760px column),
   so it stays at the page's right edge on wide screens instead of floating mid-page. It sits
   outside normal flow, so it can never push out a horizontal scrollbar; its width is capped well
   below any real viewport so it never crosses the left edge either. */
.legal::before {
  content: "";
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: clamp(280px, 46vw, 560px);
  height: clamp(280px, 46vw, 560px);
  background: url(/assets/marks/hullcore-mark-white.svg) no-repeat center / contain;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.legal > * {
  position: relative;
  z-index: 1;
}
