/* Font Face Definitions
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@font-face {
  font-family: 'Coinbase Display';
  src: url('../fonts/Coinbase_Display-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Coinbase Sans';
  src: url('../fonts/Coinbase_Sans-Medium-web-1.32.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Coinbase Sans';
  src: url('../fonts/Coinbase_Sans-Regular-web-1.32.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'NanumSquareRound';
  src: url('../fonts/NanumSquareRoundOTFL.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: 'NanumSquareRound';
  src: url('../fonts/NanumSquareRoundOTFR.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: 'NanumSquareRound';
  src: url('../fonts/NanumSquareRoundOTFB.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: 'NanumSquareRound';
  src: url('../fonts/NanumSquareRoundOTFEB.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
}

/* Language-Specific Fonts
–––––––––––––––––––––––––––––––––––––––––––––––––– */
html[lang="en"] body {
  font-family: 'Coinbase Sans', system-ui, sans-serif;
}

html[lang="ko"] body {
  font-family: 'NanumSquareRound', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}


/* Base Typography & Scale
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
  font-size: 16px;
  --scale-0: 1rem;
  --scale-1: 1.25rem;
  --scale-2: 1.563rem;
  --scale-3: 1.953rem;
  --scale-4: 2.441rem;
  --scale-5: 3.052rem;

  --spacing-xs: 0.5rem;
  --spacing-s: 1rem;
  --spacing-m: 1.5rem;
  --spacing-l: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
}

body {
  margin: 0;
  padding: 0;
  background-color: #dbe9e0;
  color: #1a1a1a;
  font-size: var(--scale-1);
  font-weight: 400;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Coinbase Display', system-ui, sans-serif;
}

h1 {
  margin: 0 0 var(--spacing-m) 0;
  font-size: var(--scale-5);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.container p {
  margin: 0 0 var(--spacing-xl) 0;
  font-size: var(--scale-1);
  line-height: 1.6;
}

/* Grid & Containers
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.container,
.container-left {
  position: relative;
  width: 100%;
  max-width: 37.5rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.container {
  padding: var(--spacing-xl) var(--spacing-m) 0 var(--spacing-m);
  text-align: center;
}

.container-left {
  padding: 0 var(--spacing-m);
  text-align: left;
}

.container-left p {
  margin-bottom: var(--spacing-s);
}

.column {
  width: 100%;
  box-sizing: border-box;
}

/* Media Queries */
@media (min-width: 25rem) {
  .container {
    width: 85%;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 34.375rem) {
  .container {
    width: 80%;
  }
  .column,
  .columns {
    margin-left: 0;
  }
}

/* Buttons
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18.75rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-weight: 400;
  background-color: var(--button-background, transparent);
  color: var(--button-text, #000);
  border: var(--button-border, none);
  border-radius: 0.5rem;
  cursor: pointer;
  box-sizing: border-box;
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.3;
  text-decoration: none;
  white-space: normal;
  hyphens: auto;
  transform-origin: center;
}

button, .button, .lang-option {
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.button:hover,
button:hover {
  color: var(--button-text);
}

/* Links
–––––––––––––––––––––––––––––––––––––––––––––––––– */
a {
  color: #2f5c47;
  text-decoration: none;
}

a:hover {
  color: #2f5c47;
  text-decoration: none;
}

/* Icons
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Avatar
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.avatar {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  background-position: center;
  margin-bottom: var(--spacing-l);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.avatar--none {
  border-radius: 0%;
}

.avatar--rounded {
  border-radius: 50%;
}

.avatar--soft {
  border-radius: 0.5rem;
}

/* Footer
–––––––––––––––––––––––––––––––––––––––––––––––––– */
footer {
  margin: var(--spacing-xxl) 0;
  font-size: var(--scale-0);
}

/* Responsive Typography
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (max-width: 34.375rem) {
  h1 {
    font-size: var(--scale-4);
  }
  body {
    font-size: var(--scale-0);
  }
  .container p {
    font-size: var(--scale-0);
  }
  .avatar {
    margin-bottom: var(--spacing-m);
  }
  footer {
    margin: var(--spacing-xl) 0;
  }
}

/* Language Toggle Switch
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  font-size: 14px;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #2f5c47;
}

.lang-switch .lang-option {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  color: #2f5c47;
  gap: 0.25rem;
  padding: 4px 6px;
  transition: opacity 0.2s ease;
}

.lang-switch .lang-option:hover {
  opacity: 0.8;
}

.lang-switch .lang-option.active {
  text-decoration: underline;
  font-weight: 500; /* match default to reduce jumpiness */
}

button:focus-visible {
  outline: 2px solid #4899F7;
  outline-offset: 2px;
}


button:active {
  transform: scale(0.97);
}


.lang-switch .divider {
  color: #2f5c47;
}
/* Theme Support
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root.theme-dark {
  color-scheme: dark;
}

:root.theme-dark body {
  background-color: #08121e;
  color: #ffffff;
}

:root.theme-dark a:not(.button) {
  color: #4899F7;
}

:root.theme-dark a:not(.button):hover {
  color: #7AB8FF;
}

:root.theme-auto {
  color-scheme: light dark;
}

:root.theme-auto body {
  background-color: #ffffff;
  color: #000000;
}

@media (prefers-color-scheme: light) {
  :root.theme-auto body {
    background-color: #dbe9e0;
    color: #000000;
  }

  :root.theme-auto a:not(.button) {
    color: #00684A;
  }

  :root.theme-auto a:not(.button):hover {
    color: #004c36;
  }
}

@media (prefers-color-scheme: dark) {
  :root.theme-auto body {
    background-color: #121212;
    color: #ffffff;
  }

  :root.theme-auto :focus-visible {
    outline: 2px solid #4899F7;
    outline-offset: 2px;
  }

  :root.theme-auto a:not(.button) {
    color: #4899F7;
  }

  :root.theme-auto a:not(.button):hover {
    color: #7AB8FF;
  }
}

/* Privacy Page Layout
–––––––––––––––––––––––––––––––––––––––––––––––––– */
nav {
  margin: var(--spacing-l) 0;
  text-align: center;
}

section {
  margin: var(--spacing-xl) 0;
  text-align: center;
}

h2 {
  font-size: var(--scale-3);
  font-weight: 700;
  margin-bottom: var(--spacing-m);
}

h3 {
  font-size: var(--scale-2);
  font-weight: 600;
  margin: var(--spacing-l) 0 var(--spacing-s) 0;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-m) 0;
}

ul li {
  margin-bottom: var(--spacing-xs);
}

@media (max-width: 34.375rem) {
  h2 {
    font-size: var(--scale-2);
  }
  h3 {
    font-size: var(--scale-1);
  }
  section {
    margin: var(--spacing-l) 0;
  }
}
