/* Shared styles for MYORA legal pages. Self-hosted fonts (no Google requests). */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-400.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-500.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-500.woff2") format("woff2");
}

:root {
  --gold: #c99342;
  --gold-hover: #b8832f;
  --anthracite: #2c2c2c;
  --sand: #e8dfd0;
  --warm-white: #f7f3ee;
  --stone-grey: #9a9490;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--anthracite);
  background: var(--warm-white);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 0;
}
.legal-header a.home {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.14em;
  color: var(--anthracite);
  text-decoration: none;
}
.lang-switch {
  display: flex;
  gap: 0.25rem;
}
.lang-switch button {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.6rem;
  border: none;
  background: none;
  color: var(--stone-grey);
  cursor: pointer;
  border-radius: 2px;
}
.lang-switch button.active {
  color: var(--gold);
}
.lang-switch button:hover {
  color: var(--anthracite);
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
main h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 1.5rem 0 0.25rem;
}
main h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 2.25rem 0 0.5rem;
}
main h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 1.5rem 0 0.35rem;
}
main p,
main li {
  font-size: 0.98rem;
}
main a {
  color: var(--gold);
}
.updated {
  color: var(--stone-grey);
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
}
.note {
  background: #fff;
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1.1rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: #55503f;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--sand);
}
th {
  font-weight: 500;
  background: #fbf8f3;
}
.table-wrap {
  overflow-x: auto;
}

.legal-footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--sand);
  font-size: 0.85rem;
  color: var(--stone-grey);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.legal-footer a {
  color: var(--stone-grey);
}

[data-lang-content] {
  display: none;
}
[data-lang-content].active {
  display: block;
}
