/* The pages next to the landing page (terms, privacy, legal notice, support). The colors and
   fonts are the landing page's, which are the app's. */

html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #0e0e0d;
  color: #edeae4;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
a {
  color: #edeae4;
  text-decoration: none;
}
a:hover {
  color: #cdb98f;
}
a:focus-visible {
  outline: 2px solid #cdb98f;
  outline-offset: 3px;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}
.back {
  display: inline-block;
  padding: 12px 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #8f8a82;
}

.bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.bar .logo {
  font-size: 28px;
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  color: #cdb98f;
}
h1 {
  margin: 0;
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.text {
  font-size: 15px;
  line-height: 2;
  color: #bdb8af;
  overflow-wrap: anywhere;
}
.text > :first-child {
  margin-top: 0;
}
.text h2 {
  margin: 56px 0 16px;
  padding-top: 32px;
  border-top: 1px solid #262523;
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: #edeae4;
}
.text h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  color: #edeae4;
}
.text p {
  margin: 0 0 16px;
}
.text ol,
.text ul {
  margin: 0 0 16px;
  padding-left: 1.6em;
}
.text li {
  margin-bottom: 8px;
}
.text li > ul {
  margin: 8px 0 0;
}
.text strong {
  font-weight: 700;
  color: #edeae4;
}
.text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text .contact {
  font-size: 18px;
}
.faq {
  padding: 24px 0;
  border-bottom: 1px solid #262523;
}
.faq > :last-child {
  margin-bottom: 0;
}

/* Tables. Lines only, no boxes. */
table {
  width: 100%;
  margin: 0 0 24px;
  border-collapse: collapse;
  border-top: 1px solid #262523;
  font-size: 14px;
  line-height: 1.9;
}
th,
td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid #262523;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}
th {
  color: #edeae4;
  font-weight: 500;
}
.pairs th {
  width: 11em;
}
.grid thead th {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #8f8a82;
}
.grid td:first-child {
  color: #edeae4;
}

/* On a narrow screen a table becomes a list: each row is a block, each cell a line of it. */
@media (max-width: 640px) {
  table,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: auto;
  }
  tr {
    padding: 16px 0;
    border-bottom: 1px solid #262523;
  }
  th,
  td {
    padding: 0;
    border-bottom: none;
  }
  .pairs th {
    width: auto;
    margin-bottom: 4px;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #8f8a82;
  }
  .pairs td {
    color: #edeae4;
  }
  .grid thead {
    display: none;
  }
  .grid td:first-child {
    margin-bottom: 8px;
    font-weight: 500;
  }
  .grid td:not(:first-child) {
    display: flex;
    gap: 12px;
  }
  .grid td:not(:first-child)::before {
    content: attr(data-label);
    flex: 0 0 7.5em;
    font-size: 12px;
    line-height: 2.2;
    color: #8f8a82;
  }
}

.foot {
  border-top: 1px solid #262523;
}
.foot > div {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #8f8a82;
}
.foot .logo {
  font-size: 24px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.foot nav a {
  padding: 6px 0;
  color: #8f8a82;
}
.foot nav a:hover,
.foot nav a[aria-current='page'] {
  color: #edeae4;
}
