:root {
  --ink: #071b33;
  --muted: #60758a;
  --blue: #1687e0;
  --line: #dce8ef;
  --page: #f5faff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}
a { color: #086eaf; }
a:focus-visible { outline: 3px solid #8fd7ff; outline-offset: 4px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 5; padding: 10px 14px; color: white; background: var(--ink); border-radius: 8px; }
.legal-header {
  min-height: 76px;
  padding: 10px max(4vw, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
}
.legal-header img { width: 170px; height: 56px; display: block; object-fit: contain; }
.legal-header nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; font-weight: 700; }
.legal-header nav a { color: #38546c; text-decoration: none; }
.legal-header nav a[aria-current="page"] { color: var(--blue); }
.legal-shell { width: 920px; max-width: calc(100% - 32px); margin: 54px auto 80px; }
.legal-title { padding: clamp(30px, 6vw, 62px); color: white; border-radius: 28px; background: linear-gradient(140deg, #071b33, #075b98 74%, #1687e0); }
.legal-title p { margin: 12px 0 0; color: #c9e0ef; }
.legal-title h1 { margin: 0; font-size: clamp(38px, 6vw, 62px); line-height: 1.04; letter-spacing: -2px; }
.legal-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 9px; }
.legal-meta span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: 12px; }
.legal-content { margin-top: 24px; padding: clamp(26px, 5vw, 54px); border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: 0 22px 65px rgba(7,27,51,.07); }
.legal-content h2 { margin: 40px 0 10px; font-size: 23px; line-height: 1.25; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 25px 0 8px; font-size: 17px; }
.legal-content p { color: #3f586e; overflow-wrap: anywhere; }
.legal-content li { margin: 7px 0; color: #3f586e; overflow-wrap: anywhere; }
.legal-content ul, .legal-content ol { padding-left: 24px; }
.notice { padding: 18px 20px; border-left: 4px solid var(--blue); border-radius: 8px; background: #eef8ff; }
.contact-card { margin-top: 35px; padding: 22px; border: 1px solid #c9dfec; border-radius: 16px; background: #f7fcff; }
.contact-card p { margin: 5px 0; }
.legal-footer { padding: 32px 20px 45px; text-align: center; color: var(--muted); font-size: 13px; }
.legal-footer a { margin: 0 8px; }
@media (max-width: 650px) {
  .legal-header { align-items: flex-start; flex-direction: column; }
  .legal-header nav { width: 100%; padding: 0 6px 10px; gap: 12px; }
  .legal-shell { margin-top: 24px; }
  .legal-title { padding: 30px 26px; border-radius: 20px; }
  .legal-title h1 { font-size: 36px; letter-spacing: -1.5px; overflow-wrap: anywhere; }
  .legal-content { padding: 28px 26px; border-radius: 20px; }
  .legal-content h2 { font-size: 21px; }
  .legal-footer { overflow-wrap: anywhere; }
}

@media (max-width: 390px) {
  .legal-header nav { font-size: 13px; }
  .legal-title h1 { font-size: 32px; }
}
