@font-face {
  font-family: 'Open Sans';
  src: url('/assets/fonts/OpenSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/assets/fonts/OpenSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/assets/fonts/OpenSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --color-accent: #ffa600;
  --color-page: #f1f2f6;
  --color-surface: #ffffff;
  --color-surface-muted: #f8f8f8;
  --color-surface-active: #f0f0f0;
  --color-accent-tint: #fff5d5;
  --color-fg: #0c0c0c;
  --color-fg-body: #1e1e1e;
  --color-fg-secondary: #3d3d3d;
  --color-fg-muted: rgb(0 0 0 / 0.7);
  --color-fg-faint: #b8b8b8;
  --color-border: #d1d0db;
  --color-border-subtle: rgb(0 0 0 / 0.1);
  --color-border-strong: rgb(0 0 0 / 0.2);
  --color-focus-ring: #3b82f6;
  --radius-card: 15px;
  --radius-inner: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 0 40.7px 0 rgb(21 23 70 / 0.05);
  --font-sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-fg-body);
  background: var(--color-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shell__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/assets/background.svg') center / cover no-repeat;
  filter: blur(1px);
  pointer-events: none;
}

.shell__logo {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 20;
  display: block;
  width: 50px;
  height: 30px;
}

@media (min-width: 768px) {
  .shell__logo {
    left: 48px;
    top: 48px;
  }
}

.shell__main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 88px 16px 32px;
}

@media (min-width: 768px) {
  .shell__main {
    padding: 48px 24px;
  }
}

.shell__main--article {
  align-items: flex-start;
  padding-top: 96px;
}

@media (min-width: 768px) {
  .shell__main--article {
    padding-top: 112px;
  }
}

.card {
  width: 100%;
  max-width: 28rem;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  padding: 32px 24px;
}

@media (min-width: 480px) {
  .card {
    padding: 32px;
  }
}

.card__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.card__icon {
  width: 50px;
  height: 64px;
  display: block;
}

.card__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-fg);
  text-align: center;
}

.card__subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-fg-muted);
  text-align: center;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  width: 100%;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.btn--store {
  background: var(--color-surface);
  color: var(--color-fg-body);
  border: 1px solid var(--color-border-subtle);
}

.btn--store:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-muted);
}

.btn--store:active {
  background: var(--color-surface-active);
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.btn__label small {
  font-size: 10px;
  font-weight: 400;
  color: var(--color-fg-muted);
  letter-spacing: 0.02em;
}

.hint {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-inner);
  background: var(--color-accent-tint);
  color: var(--color-fg-secondary);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.footer {
  position: relative;
  z-index: 10;
  padding: 16px 24px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--color-fg-muted);
}

.footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__sep {
  margin: 0 8px;
  color: var(--color-fg-faint);
}

[hidden] {
  display: none !important;
}

.article {
  width: 100%;
  max-width: 48rem;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  padding: 32px 20px;
}

@media (min-width: 768px) {
  .article {
    padding: 48px;
  }
}

.lang-switch {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--color-fg-muted);
}

.lang-switch a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lang-switch [aria-current] {
  font-weight: 600;
  color: var(--color-fg);
}

.article h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-fg);
}

.article .meta {
  margin: 0 0 32px;
  font-size: 13px;
  color: var(--color-fg-muted);
}

.article h2 {
  margin: 32px 0 12px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-fg);
}

.article p,
.article li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-fg-body);
}

.article p {
  margin: 0 0 12px;
}

.article ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.article li {
  margin-bottom: 6px;
}

.article a {
  color: var(--color-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 14px;
}

.article th,
.article td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.article th {
  font-weight: 600;
  color: var(--color-fg);
  background: var(--color-surface-muted);
}

.article h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-fg);
}

.article h2,
.article h3 {
  scroll-margin-top: 16px;
}

.article strong {
  font-weight: 600;
  color: var(--color-fg);
}

.policy h1 {
  font-size: 22px;
  letter-spacing: 0.01em;
}

.article p,
.article li,
.article td {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .policy-table,
  .policy-table tbody,
  .policy-table tr,
  .policy-table td {
    display: block;
    width: 100%;
  }

  .policy-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .policy-table tr {
    margin: 0 0 12px;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-inner);
    overflow: hidden;
  }

  .article .policy-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .article .policy-table td:last-child {
    border-bottom: 0;
  }

  .policy-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-fg-muted);
  }

  .article .policy-table td:first-child {
    background: var(--color-surface-muted);
    font-weight: 600;
    color: var(--color-fg);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
