/* Shared styles for the contact and legal pages. index.html keeps its own inline styles. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
}

:root {
  --blue: #3285FF;
  --blue-300: #98C2FF;
  --blue-600: #2A72DC;
  --blue-700: #215CB4;
  --blue-800: #18478D;
  --ink: #000;
  --white: #fff;
  --sky: #C3DBFF;
  --mist: #D5E6FF;
  --haze: #F0F6FF;
  --slate: #6B6C6E;
  --stone: #737373;
  --line: rgba(0, 0, 0, .09);
  --lift: linear-gradient(180deg, #C3DBFF 0%, #FFFFFF 100%);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", Arial, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.nav-logo img { width: 132px; height: auto; margin-left: -14px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; transition: color .2s var(--ease); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--blue-700); }
.nav-links a.lang-link { font-size: 14px; color: var(--slate); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 500; font-size: 16px; line-height: 1; text-decoration: none;
  background: var(--blue-600); color: var(--white);
  transition: background-color .2s var(--ease);
}
.btn:hover { background: var(--blue-700); }
.btn:active { background: var(--blue-800); }
.nav .btn { height: 40px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 14px; height: 14px; }
.btn svg path { fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Page head */
.page-head { background: var(--lift); padding-bottom: 72px; }
.page-head h1 { font-weight: 300; font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -.03em; margin: 56px 0 16px; overflow-wrap: break-word; hyphens: auto; }
.page-head p { margin: 0; color: var(--slate); font-size: 16px; }
.page-head .lang { margin-top: 12px; }
.page-head .lang a { color: var(--blue-700); text-underline-offset: 3px; }
.page-head .lede { font-size: clamp(17px, 1.5vw, 20px); max-width: 34em; }

/* Legal documents */
.doc { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; padding: 64px var(--gutter) 128px; }
.toc { position: sticky; top: 32px; align-self: start; font-size: 14px; }
.toc p { margin: 0 0 12px; color: var(--slate); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc .toc a { color: var(--slate); text-decoration: none; transition: color .2s var(--ease); }
.doc .toc a:hover { color: var(--ink); }
.doc article > :first-child { margin-top: 0; }
.doc h2 { font-weight: 400; font-size: 24px; line-height: 1.3; letter-spacing: -.01em; margin: 56px 0 16px; scroll-margin-top: 24px; }
.doc h3 { font-weight: 500; font-size: 17px; margin: 28px 0 8px; }
.doc p, .doc li { margin: 0 0 14px; }
.doc ul { padding-left: 20px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--blue-700); text-underline-offset: 3px; }
.doc address { font-style: normal; margin: 0 0 14px; }
.note { background: var(--haze); border-radius: 16px; padding: 20px 24px; margin: 0 0 14px; }
.note p:last-child { margin-bottom: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 64px var(--gutter) 128px; align-items: start; }
.contact h2 { font-weight: 400; font-size: 14px; color: var(--slate); margin: 0 0 8px; }
.contact section + section { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact p { margin: 0; }
.contact address { font-style: normal; }
.email { font-weight: 300; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.02em; line-height: 1.1; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; transition: text-decoration-color .2s var(--ease); }
.email:hover { text-decoration-color: var(--blue); }
.contact .muted { color: var(--slate); margin-top: 12px; }
.contact a:not(.email):not(.btn) { color: var(--blue-700); text-underline-offset: 3px; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 24px 64px -32px rgba(16, 50, 101, .3); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(0, 0, 0, .16); border-radius: 12px; background: var(--white);
  transition: border-color .2s var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form small { color: var(--slate); font-size: 13px; line-height: 1.5; }
.form small a { color: var(--blue-700); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--slate); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
footer img { width: 112px; margin-left: -12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { text-decoration: none; transition: color .2s var(--ease); }
footer a:hover, footer a[aria-current="page"] { color: var(--ink); }

@media (max-width: 860px) {
  .nav-links a:not(.btn):not(.lang-link) { display: none; }
  .nav-links { gap: 16px; }
  .doc, .contact { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; }
  .row2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
