@import url('../fonts/font.css');

:root {
  color-scheme: dark;
  font-family: 'Manrope', system-ui, sans-serif;
  color: #f7f6f3;
  background: #090a0c;
  font-synthesis: none;
  --line: rgba(255,255,255,.09);
  --accent: #ff947f;
  --muted: #a3a0ae;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; background: radial-gradient(ellipse 750px 480px at 80% 0,rgba(255,95,82,.07),transparent 75%),#090a0c; font-size: 15px; line-height: 1.8; }
a { color: #ffb09b; text-decoration-color: rgba(255,176,155,.4); text-underline-offset: .22em; }
a:hover { color: #ffcebd; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #181012; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(12,13,16,.8); }
.header-inner, .legal-main, .site-footer { width: min(100% - 64px,1160px); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: #f7f6f3; text-decoration: none; }
.brand > span { min-width: 0; overflow-wrap: anywhere; }
.brand img { width: 42px; height: 42px; flex-shrink: 0; }
.brand strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.04em; line-height: 1.3; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.back-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; line-height: 1.4; color: #ccc8d1; text-decoration: none; }
.back-link > span { min-width: 0; }
.legal-back-arrow { display: block; flex-shrink: 0; width: 15px; height: 15px; color: var(--muted); }
.back-link:hover { background: #1b171b; }
.back-link:hover .legal-back-arrow, .back-link:focus-visible .legal-back-arrow { color: var(--accent); }
[dir="rtl"] .legal-back-arrow { transform: scaleX(-1); }
.legal-main { padding-block: 32px 72px; }
.legal-nav { display: flex; width: fit-content; max-width: 100%; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 15px; background: #111216; }
.legal-nav a { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 20px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; transition: background .15s,color .15s; }
.legal-nav a:hover { color: #f7f6f3; background: #1d1c23; }
.legal-nav a[aria-current="page"] { background: #30201f; color: #ffb09b; box-shadow: inset 0 0 0 1px rgba(255,148,127,.18); }
.legal-hero { padding: 38px 0 32px; }
.page-label { margin: 0 0 12px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { max-width: 24ch; margin: 0; font-size: clamp(30px,4vw,46px); font-weight: 800; letter-spacing: -.05em; line-height: 1.15; overflow-wrap: anywhere; }
.page-intro { max-width: 650px; margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.document-meta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 24px; margin-top: 22px; color: var(--muted); font-size: 12px; }
.language-nav { display: flex; gap: 8px; }
.language-nav a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: #dedbe3; font-size: 12px; text-decoration: none; }
.language-nav a:hover { border-color: rgba(255,148,127,.4); }
.legal-layout { display: grid; grid-template-columns: 252px minmax(0,1fr); align-items: start; gap: 32px; }
.legal-sidebar { position: sticky; top: 24px; }
.contents { border: 1px solid var(--line); border-radius: 18px; background: #101115; }
.contents summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; color: #edeaf0; font-size: 12px; font-weight: 800; list-style: none; cursor: pointer; }
.contents summary::-webkit-details-marker { display: none; }
.contents summary > span { min-width: 0; overflow-wrap: anywhere; }
.legal-chevron { display: block; flex-shrink: 0; width: 15px; height: 15px; color: var(--muted); transition: transform .18s ease, color .18s ease; }
details[open] > summary > .legal-chevron { transform: rotate(180deg); }
summary:hover > .legal-chevron, summary:focus-visible > .legal-chevron { color: var(--accent); }
.contents nav { display: grid; gap: 4px; padding: 0 12px 12px; }
.contents a { display: flex; align-items: baseline; gap: 12px; padding: 9px 8px; border-radius: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; text-decoration: none; }
.contents a:hover { color: #f7f6f3; background: #211b20; }
.contents a > span:first-child { flex-shrink: 0; width: 18px; color: var(--accent); font-size: 10px; font-weight: 800; }
.support-card { margin-top: 16px; padding: 20px; border: 1px solid rgba(255,148,127,.13); border-radius: 18px; background: linear-gradient(145deg,rgba(255,148,127,.055),#101115); }
.support-card strong { font-size: 13px; }
.support-card p { margin: 8px 0 12px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.support-card a { display: block; font-size: 11px; overflow-wrap: anywhere; text-decoration: none; }
.support-card a span { margin-left: 3px; }
.legal-card { scroll-margin-top: 24px; padding: clamp(24px,4vw,42px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg,#17161c,#101216 45%); overflow-wrap: anywhere; }
.legal-card + .legal-card { margin-top: 24px; }
.language-label { display: inline-flex; margin: 0 0 14px; padding: 5px 10px; border: 1px solid rgba(255,148,127,.2); border-radius: 999px; background: rgba(255,148,127,.06); color: #ffb09b; font-size: 10px; font-weight: 700; line-height: 1.4; }
h2 { scroll-margin-top: 24px; margin: 28px 0 12px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 800; line-height: 1.4; letter-spacing: -.035em; }
h2.document-title { margin: 0; padding: 0; border: 0; font-size: clamp(24px,3vw,30px); line-height: 1.25; }
.muted { margin-top: 12px; color: var(--muted); font-size: 11px; }
p, address, li { color: #c8c6ce; }
p { margin: 14px 0 0; }
address { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); font-size: 13px; font-style: normal; }
ul, ol { margin: 16px 0 0; padding-left: 22px; }
li { padding-left: 6px; }
li + li { margin-top: 12px; }
li::marker { color: var(--accent); font-weight: 700; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 26px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.legal-copyright { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: #ffb09b; }
.legal-nav { flex-wrap: wrap; }
.legal-nav a { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: center; }
@media (max-width: 700px) {
  .legal-nav { display: grid; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .header-inner, .legal-main, .site-footer { width: calc(100% - 40px); }
  .legal-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .legal-sidebar { position: static; }
  .contents nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .support-card { display: none; }
  .legal-hero { padding-block: 30px; }
}
@media (max-width: 480px) {
  body { font-size: 14px; line-height: 1.8; }
  .header-inner, .legal-main, .site-footer { width: calc(100% - 32px); }
  .header-inner { padding-block: 16px; gap: 10px; }
  .brand img { width: 32px; height: 32px; }
  .brand strong { font-size: 13px; }
  .brand small { max-width: 150px; font-size: 9px; }
  .back-link { padding: 8px 10px; font-size: 10px; }
  .legal-main { padding-block: 24px 40px; }
  .legal-nav { width: 100%; gap: 3px; padding: 4px; border-radius: 12px; }
  .legal-nav a { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 6px; font-size: 10px; border-radius: 8px; }
  h1 { font-size: clamp(25px,7.7vw,30px); }
  .page-intro { font-size: 13px; }
  .document-meta { gap: 12px; margin-top: 18px; }
  .contents nav { grid-template-columns: minmax(0,1fr); }
  .contents summary { padding: 14px 18px; }
  .contents a { padding-block: 8px; }
  .legal-card { padding: 24px 20px; border-radius: 18px; }
  h2 { font-size: 18px; }
  h2.document-title { font-size: clamp(20px,6.2vw,24px); }
  address { padding: 14px; }
  .site-footer { padding-bottom: max(28px,env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .legal-nav a, .legal-chevron { transition: none; } }
/* Overlay the bounded list without moving the document below it. */
.legal-language-form { position: relative; z-index: 2; display: grid; gap: 8px; width: min(100%,280px); min-width: 0; }
#legal-language-label { font-size: 11px; color: var(--muted); }
.legal-language-picker { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #15151b; }
.legal-language-picker summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 9px 14px; border-radius: 11px; color: #f7f6f3; font-size: 12px; list-style: none; cursor: pointer; }
.legal-language-picker summary::-webkit-details-marker { display: none; }
.legal-language-picker summary > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.legal-language-picker[open] summary { background: #242129; }
.legal-language-options { position: absolute; inset-block-start: calc(100% + 8px); inset-inline: 0; z-index: 1; max-height: min(308px,45vh); max-height: min(308px,45dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #15151b; box-shadow: 0 18px 48px #0009; }
.legal-language-options a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: #dedbe3; text-decoration: none; font-size: 13px; overflow-wrap: anywhere; }
.legal-language-options a:hover { background: #242129; }
.legal-language-options a[aria-current="page"] { background: #30201f; color: #ffb09b; }
.legal-language-picker :focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
@media (max-width: 850px) {
  .document-meta { flex-direction: column; align-items: stretch; }
  .legal-language-form { width: 100%; }
}
.legal-card a[href^="mailto:"], .support-card a { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] ul, [dir="rtl"] ol { padding-left: 0; padding-right: 22px; }
[dir="rtl"] li { padding-left: 0; padding-right: 6px; }
@media (max-width: 480px) {
  .legal-language-form { width: 100%; }
  .legal-nav a { white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.4; }
  .back-link { max-width: 42%; overflow-wrap: anywhere; }
}
