:root {
  color: #0f172a;
  background: #f6f8fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f6f8fb;
  color: #0f172a;
}

a {
  color: #0f766e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.legal-header {
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
}

.legal-header-inner,
.legal-main,
.legal-footer {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.legal-language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
}

.legal-language-switcher::before {
  content: "◉";
  position: absolute;
  left: 10px;
  color: #0f766e;
  font-size: 10px;
  pointer-events: none;
}

.legal-language-switcher select {
  width: min(220px, 34vw);
  min-height: 36px;
  padding: 0 30px 0 27px;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
}

.legal-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0f766e;
  color: white;
  font-size: 15px;
  font-weight: 700;
}

.legal-back {
  font-size: 14px;
  font-weight: 600;
}

.legal-main {
  padding: 48px 0 56px;
}

.legal-card {
  overflow: hidden;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.legal-title {
  padding: 34px 36px 26px;
  border-bottom: 1px solid #e2e8f0;
}

.legal-title h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.12;
}

.legal-updated {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.legal-language {
  padding: 30px 36px;
}

.legal-notice {
  margin: 24px 36px 0;
  padding: 14px 16px;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  background: #f0fdfa;
  color: #115e59;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.legal-document {
  color: #475569;
  font-size: 16px;
  line-height: 1.65;
}

.legal-section + .legal-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}

.legal-section h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.25;
}

.legal-section p {
  margin: 0;
}

.legal-section p + p {
  margin-top: 12px;
}

.legal-section ul {
  margin: 14px 0 0;
  padding-inline-start: 24px;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 24px 36px;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
  font-weight: 600;
}

.legal-footer {
  padding: 0 0 36px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .legal-header-inner,
  .legal-main,
  .legal-footer {
    width: min(100% - 24px, 880px);
  }

  .legal-header-inner {
    min-height: 60px;
    align-items: flex-start;
    padding: 12px 0;
  }

  .legal-header-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .legal-back {
    max-width: 160px;
    text-align: right;
  }

  .legal-language-switcher select {
    width: min(180px, 48vw);
  }

  .legal-main {
    padding: 24px 0 36px;
  }

  .legal-title,
  .legal-notice,
  .legal-language,
  .legal-nav {
    padding-left: 22px;
    padding-right: 22px;
  }

  .legal-notice {
    margin-left: 22px;
    margin-right: 22px;
  }
}
