:root {
   --bg: #f3f4f6;
   --panel: #ffffff;
   --text: #111827;
   --muted: #6b7280;
   --border: #e5e7eb;
   --card: #ffffff;
   --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
   --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
   --radius: 18px;
   --radius-sm: 14px;
}
* {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}
body {
   font-family:
      ui-sans-serif,
      system-ui,
      -apple-system,
      Segoe UI,
      Roboto,
      Helvetica,
      Arial,
      "Apple Color Emoji",
      "Segoe UI Emoji";
   background: var(--bg);
   color: var(--text);
   min-height: 100vh;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 26px 16px;
}
.wrapper {
   width: 100%;
   max-width: 980px;
}
.panel {
   background: var(--panel);
   border-radius: var(--radius);
   box-shadow: var(--shadow);
   padding: 26px 22px 22px;
   border: 1px solid rgba(229, 231, 235, 0.65);
}
.brand {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 12px;
   margin-bottom: 18px;
}
.brand img {
   width: 240px;
   max-width: 88%;
   height: auto;
   max-height: 92px;
   object-fit: contain;
}
.brand h1 {
   font-size: 20px;
   font-weight: 800;
   letter-spacing: -0.02em;
   text-align: center;
}
.brand p {
   font-size: 12.8px;
   line-height: 1.45;
   color: var(--muted);
   text-align: center;
   max-width: 560px;
}
.grid {
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 16px;
   margin-top: 18px;
}
.country {
   display: flex;
   align-items: center;
   justify-content: center;
   flex-direction: column;
   gap: 12px;
   text-decoration: none;
   background: var(--card);
   border: 1px solid var(--border);
   border-radius: 16px;
   padding: 18px 14px;
   box-shadow: var(--shadow-sm);
   transition:
      transform 0.12s ease,
      box-shadow 0.12s ease,
      background 0.12s ease,
      border-color 0.12s ease;
   min-height: 110px;
   position: relative;
}
.country:hover {
   transform: translateY(-2px);
   box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
   border-color: rgba(209, 213, 219, 0.95);
   background: #fff;
}
.country:focus-visible {
   outline: none;
   border-color: #93c5fd;
   box-shadow:
      0 0 0 3px rgba(59, 130, 246, 0.25),
      0 12px 28px rgba(0, 0, 0, 0.1);
}
.flag {
   display: flex;
   align-items: center;
   justify-content: center;
}
.flag-img {
   width: 54px;
   height: 40px;
   object-fit: cover;
   border-radius: 10px;
   background: #fff;
   border: 1px solid rgba(229, 231, 235, 0.95);
   box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.country span {
   font-size: 14px;
   color: #111827;
   font-weight: 700;
   text-align: center;
   line-height: 1.15;
}
.footer {
   text-align: center;
   margin-top: 18px;
   padding: 0 10px;
   color: var(--muted);
   font-size: 12px;
}
.footer-links {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   flex-wrap: wrap;
   font-weight: 700;
   letter-spacing: 0.04em;
   text-transform: uppercase;
}
.footer-links a {
   color: var(--muted);
   text-decoration: none;
}
.footer-links a:hover {
   text-decoration: underline;
}
.footer .separator {
   opacity: 0.6;
}
.footer .disclaimer {
   margin: 12px auto 0;
   max-width: 920px;
   line-height: 1.55;
   font-weight: 400;
}
.footer .disclaimer p {
   margin: 0 0 10px;
}
.footer .disclaimer p:last-child {
   margin-bottom: 0;
}
.footer .copyright {
   margin-top: 10px;
   font-weight: 550;
}
.legal .legal-content {
   margin-top: 6px;
   color: var(--text);
}
.legal .legal-content p {
   margin: 0 0 12px;
   line-height: 1.6;
   color: #374151;
   font-size: 13.2px;
}
.legal .legal-back {
   margin-top: 10px;
   text-align: center;
}
.legal .legal-back a {
   color: var(--muted);
   text-decoration: none;
   font-weight: 700;
}
.legal .legal-back a:hover {
   text-decoration: underline;
}
@media (max-width: 720px) {
   .grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
   }
   .panel {
      padding: 22px 18px 18px;
   }
   .country {
      min-height: 104px;
      padding: 16px 12px;
   }
   .flag-img {
      width: 50px;
      height: 36px;
      border-radius: 10px;
   }
}
@media (max-width: 420px) {
   .brand img {
      width: 220px;
      max-height: 84px;
   }
}
@media (max-width: 340px) {
   .grid {
      grid-template-columns: 1fr;
   }
}
