/* EASYWIN GAMES LTD — landing page
   Implemented from the design "EasyWin Games Site v2.dc.html". */

:root {
  --bg: #ffffff;
  --ink: #14161c;
  --ink-strong: rgba(20, 22, 28, 0.78);
  --ink-body: rgba(20, 22, 28, 0.66);
  --ink-label: rgba(20, 22, 28, 0.48);
  --ink-faint: rgba(20, 22, 28, 0.42);
  --border: rgba(20, 22, 28, 0.18);
  --rule: rgba(20, 22, 28, 0.14);
  --link: #1a1c22;
  --accent: #5b6bff;
  --accent-glow: rgba(91, 107, 255, 0.09);
  --accent-glow-out: rgba(91, 107, 255, 0);
  --selection: #dfe4ff;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--selection);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}

/* Page shell -------------------------------------------------------------- */

.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4vh, 52px) clamp(24px, 6vw, 80px);
  overflow: hidden;
}

/* Soft accent glow bleeding off the top-right corner. */
.page::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--accent-glow), var(--accent-glow-out) 66%);
  pointer-events: none;
}

/* The bands sit above the glow. */
.masthead,
.hero,
.doc,
.site-footer {
  position: relative;
}

/* Masthead ---------------------------------------------------------------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* On document pages the brand is a link home. */
a.brand {
  color: inherit;
}

a.brand:hover {
  color: var(--accent);
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.masthead__year {
  font-size: 13px;
  color: var(--ink-faint);
}

/* Hero -------------------------------------------------------------------- */

.hero {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 4vh, 72px) 0;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, min(6.4vw, 9.5vh), 80px);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 19ch;
  text-wrap: balance;
}

.hero__lede {
  margin: clamp(14px, 2.6vh, 30px) 0 0;
  font-size: clamp(15px, min(1.35vw, 2.6vh), 19px);
  line-height: 1.6;
  color: var(--ink-body);
  max-width: 58ch;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 3.2vh, 38px);
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: 11px;
  font-size: 15px;
}

.btn--primary {
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
}

.btn--primary:hover {
  background: #2b2f3a;
  color: #ffffff;
}

.btn--secondary {
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 500;
}

.btn--secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Document pages (privacy, terms) ----------------------------------------- */

.doc {
  flex: 1;
  min-height: 0;
  padding: clamp(24px, 5vh, 68px) 0 clamp(32px, 7vh, 88px);
}

.doc__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, min(4.6vw, 6.4vh), 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 20ch;
  text-wrap: balance;
}

/* Prose container: ready for text to be dropped in as-is. */
.doc__body {
  max-width: 72ch;
  margin-top: clamp(18px, 3.4vh, 36px);
  font-size: clamp(15px, min(1.2vw, 2.3vh), 17px);
  line-height: 1.7;
  color: var(--ink-body);
  text-wrap: pretty;
}

.doc__body > :first-child {
  margin-top: 0;
}

.doc__body h2 {
  margin: 2em 0 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.26em;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.doc__body h3 {
  margin: 1.7em 0 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06em;
  line-height: 1.3;
  color: var(--ink);
}

.doc__body h4 {
  margin: 1.5em 0 0.4em;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1em;
  color: var(--ink);
}

.doc__body p {
  margin: 0 0 1.05em;
}

/* Effective date / last-updated line under the page title. */
.doc__meta {
  margin: 0 0 1.8em;
  font-size: 0.92em;
  color: var(--ink-label);
}

.doc__body ul,
.doc__body ol {
  margin: 0 0 1.05em;
  padding-left: 1.35em;
}

.doc__body li {
  margin-bottom: 0.4em;
}

/* These two override the generic list padding above, so they need to match its
   specificity (.doc__body ul) to win. */

/* Clauses that carry their own "(i)", "(a)" markers in the source text:
   no bullet, hanging indent so the marker sits flush left. */
.doc__body .doc__enum {
  list-style: none;
  padding-left: 1.5em;
}

.doc__body .doc__enum li {
  text-indent: -1.5em;
}

/* Long lists of partner links: columns rather than one tall stack. */
.doc__body .doc__links {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 2px 28px;
}

.doc__body .doc__links li {
  margin-bottom: 0;
  text-indent: 0;
}

.doc__body .doc__links a {
  display: inline-block;
  padding: 4px 0;
}

/* Facts that must be supplied or confirmed before this page goes live. */
.doc__todo {
  background: #fff3bf;
  color: #6a4a00;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.94em;
}

.doc__body li::marker {
  color: var(--ink-label);
}

.doc__body strong {
  color: var(--ink);
  font-weight: 500;
}

.doc__body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.doc__body a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.doc__body table {
  width: 100%;
  margin: 0 0 1.4em;
  border-collapse: collapse;
  font-size: 0.94em;
}

.doc__body th,
.doc__body td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.doc__body th {
  font-weight: 500;
  color: var(--ink);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 22px 32px;
  padding-top: clamp(16px, 2.6vh, 28px);
  border-top: 1px solid var(--rule);
}

.site-footer__label {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-label);
}

.site-footer__body {
  font-style: normal;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-strong);
}

/* Companies established in the EU must show their registration number on the
   site itself (e-Commerce Directive art. 5), not only inside the terms. */
.site-footer__reg {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-strong);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14.5px;
  line-height: 1.5;
}

.site-footer__links a {
  color: var(--ink-strong);
}

.site-footer__links a:hover {
  color: var(--accent);
}

/* The page you are already on. */
.site-footer__links a[aria-current="page"] {
  color: var(--ink);
}
